mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
if git not installed do not show error. Just propose install git and clone from github repo
This commit is contained in:
parent
49915026e5
commit
0ce642b241
4 changed files with 18 additions and 10 deletions
|
|
@ -183,6 +183,9 @@ thru keys panel (F8).
|
|||
|
||||
* Fixed bug with minified styles.
|
||||
|
||||
* If git not installed do not show error.
|
||||
Just propose install git and clone from github repo.
|
||||
|
||||
|
||||
2012.10.01, Version 0.1.7
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
(function(){
|
||||
"use strict";
|
||||
|
||||
|
||||
var DIR = __dirname + '/',
|
||||
main = require(DIR + 'lib/server/main'),
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
var main = global.cloudcmd.main,
|
||||
mainpackage = main.mainpackage,
|
||||
exec = main.child_process.exec,
|
||||
Util = main.util,
|
||||
DIR = main.DIR;
|
||||
|
||||
exports.get = function(){
|
||||
|
|
@ -25,7 +26,8 @@
|
|||
* @param pStdout
|
||||
* @param pStderr
|
||||
*/
|
||||
function pull(pError, pStdout, pStderr){
|
||||
function pull(pError, pStdout, pStderr){
|
||||
var lExec;
|
||||
|
||||
if(!pError){
|
||||
pStderr = '';
|
||||
|
|
@ -37,13 +39,17 @@
|
|||
console.log(DIR);
|
||||
if(mainpackage)
|
||||
pStdout = 'Version ' + mainpackage.version + '\n' + pStdout;
|
||||
}
|
||||
|
||||
lExec = {
|
||||
stdout : pStdout,
|
||||
stderr : pStderr || pError
|
||||
};
|
||||
}else
|
||||
lExec = 'install git to get auto updates (works for cloned versinons)\n' +
|
||||
'git clone http://github.com/coderaiser/cloudcmd';
|
||||
|
||||
var lExec = {
|
||||
stdout : pStdout,
|
||||
stderr : pStderr || pError
|
||||
};
|
||||
|
||||
console.log(lExec);
|
||||
|
||||
Util.log(lExec);
|
||||
}
|
||||
})();
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ npm i recess jshint
|
|||
echo "jshint server.js client.js cloudcmd.js"
|
||||
node_modules/jshint/bin/hint --config test/.jshintrc lib/server.js lib/client.js cloudcmd.js
|
||||
echo "jshint lib/cloudfunc.js lib/client/keyBinding.js"
|
||||
node_modules/jshint/bin/hint --config test/.jshintrc lib/util.js lib/cloudfunc.js node_modules/minify/minify.js lib/client/keyBinding.js
|
||||
node_modules/jshint/bin/hint --config test/.jshintrc lib/util.js lib/cloudfunc.js lib/client/keyBinding.js
|
||||
echo "lib/client/dom.js lib/client/ie.js lib/client/menu.js lib/client/socket.js ./lib/client/terminal.js lib/client/viewer.js lib/client/storage/_github.js lib/client/menu.js lib/client/editor/_codemirror.js"
|
||||
node_modules/jshint/bin/hint --config test/.jshintrc lib/client/dom.js lib/client/ie.js lib/client/menu.js lib/client/socket.js ./lib/client/terminal.js lib/client/viewer.js lib/client/storage/_github.js lib/client/menu.js lib/client/editor/_codemirror.js
|
||||
echo "jshint ./package.json ./config.json"
|
||||
|
|
@ -12,5 +12,4 @@ node_modules/jshint/bin/hint --config test/.jshintrc ./package.json ./config.jso
|
|||
echo "recess css/*.css"
|
||||
./node_modules/recess/bin/recess css/*.css
|
||||
node test/test.js
|
||||
npm r recess jshint
|
||||
node cloudcmd.js test
|
||||
Loading…
Add table
Add a link
Reference in a new issue