Skip to content

Commit

Permalink
Fix bug where --update was mistitled as --updated
Browse files Browse the repository at this point in the history
  • Loading branch information
larzconwell committed Jun 26, 2012
1 parent 4772226 commit 04552f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/auto_npm.js
Expand Up @@ -58,7 +58,7 @@ while(args.length) {
enabled = false; enabled = false;
break; break;
case '-u': case '-u':
case '--updated': case '--update':
updating = true; updating = true;
break; break;
} }
Expand All @@ -69,6 +69,7 @@ while(args.length) {
gitDir = path.existsSync(path.join(cd, '.git')); gitDir = path.existsSync(path.join(cd, '.git'));
if(!gitDir) throw new Error('The Directory "' + cd + '" is not a git repo.'); if(!gitDir) throw new Error('The Directory "' + cd + '" is not a git repo.');



// //
// If updating arg is set then we need to update NPM package // If updating arg is set then we need to update NPM package
if(updating) { if(updating) {
Expand Down

0 comments on commit 04552f3

Please sign in to comment.