Permalink
Browse files

Fix bug where --update was mistitled as --updated

  • Loading branch information...
1 parent 4772226 commit 04552f3d31d8ef6ff09a9f287594439290ea4558 @larzconwell committed Jun 26, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 bin/auto_npm.js
View
@@ -58,7 +58,7 @@ while(args.length) {
enabled = false;
break;
case '-u':
- case '--updated':
+ case '--update':
updating = true;
break;
}
@@ -69,6 +69,7 @@ while(args.length) {
gitDir = path.existsSync(path.join(cd, '.git'));
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) {

0 comments on commit 04552f3

Please sign in to comment.