Permalink
Browse files

sudo command: CLI fix: 2 non-empty args required

  • Loading branch information...
1 parent 7cec71b commit 96be9503ef1a59dcb42fbb958e4c1d7e229c7c5e @skoslowski skoslowski committed with Nov 22, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/commands/sudo
View
@@ -7,7 +7,7 @@
die() { echo "$@" >&2; exit 1; }
usage() { perl -lne 'print substr($_, 2) if /^# Usage/../^$/' < $0; exit 1; }
-[ -z "$1" ] && usage
+[ -z "$2" ] && usage
[ "$1" = "-h" ] && usage
[ -z "$GL_USER" ] && die GL_USER not set

0 comments on commit 96be950

Please sign in to comment.