refactor(update) get

This commit is contained in:
coderaiser 2014-06-25 10:18:49 -04:00
parent 15c5edec57
commit ab13f6b793

View file

@ -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);
});
};