mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-26 09:24:07 +00:00
refactor(update) get
This commit is contained in:
parent
15c5edec57
commit
ab13f6b793
1 changed files with 2 additions and 2 deletions
|
|
@ -20,10 +20,10 @@
|
|||
DIR = main.DIR;
|
||||
|
||||
exports.get = function() {
|
||||
fs.readdir(DIR, function(err, files) {
|
||||
fs.readdir(DIR, function(error, files) {
|
||||
var isGit = !~files.indexOf('.git');
|
||||
|
||||
if (!err && isGit)
|
||||
if (!error && isGit)
|
||||
exec('git pull --rebase', {cwd : DIR}, pull);
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue