diff --git a/lib/server/update.js b/lib/server/update.js index 7a2e23af..0413be55 100644 --- a/lib/server/update.js +++ b/lib/server/update.js @@ -3,6 +3,15 @@ (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://github.com/coderaiser/cloudcmd' + '\n'); + var main = global.cloudcmd.main, mainpackage = main.mainpackage, exec = main.child_process.exec, @@ -45,7 +54,7 @@ stderr : pStderr || pError }; }else - lExec = 'install git to get auto updates (works for cloned versinons)\n' + + lExec = 'install git to get auto updates (works for cloned version)\n' + 'git clone http://github.com/coderaiser/cloudcmd';