mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(update) rm main
This commit is contained in:
parent
fe9a2b2574
commit
fe11d1788d
1 changed files with 6 additions and 13 deletions
|
|
@ -3,21 +3,14 @@
|
|||
(function() {
|
||||
'use strict';
|
||||
|
||||
if (!global.cloudcmd)
|
||||
return console.log(
|
||||
'# update.js' + '\n' +
|
||||
'# -----------' + '\n' +
|
||||
'# Module is part of Cloud Commander,' + '\n' +
|
||||
'# used for work update thru git.' + '\n' +
|
||||
'# If you wont to see at work install git' + '\n' +
|
||||
'# http://cloudcmd.io' + '\n');
|
||||
|
||||
var main = global.cloudcmd.main,
|
||||
mainpackage = main.mainpackage || {},
|
||||
exec = require('child_process').exec,
|
||||
var exec = require('child_process').exec,
|
||||
fs = require('fs'),
|
||||
path = require('path'),
|
||||
Util = require('../util'),
|
||||
DIR = main.DIR;
|
||||
|
||||
DIR = path.normalize(__dirname + '/../../'),
|
||||
|
||||
mainpackage = require(DIR + 'package');
|
||||
|
||||
exports.get = function() {
|
||||
fs.readdir(DIR, function(error, files) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue