diff --git a/lib/server/update.js b/lib/server/update.js index b8c633c2..723eb8df 100644 --- a/lib/server/update.js +++ b/lib/server/update.js @@ -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); }); };