sudo command: CLI fix: 2 non-empty args required
This commit is contained in:
parent
7cec71b0ef
commit
96be9503ef
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
die() { echo "$@" >&2; exit 1; }
|
die() { echo "$@" >&2; exit 1; }
|
||||||
usage() { perl -lne 'print substr($_, 2) if /^# Usage/../^$/' < $0; exit 1; }
|
usage() { perl -lne 'print substr($_, 2) if /^# Usage/../^$/' < $0; exit 1; }
|
||||||
[ -z "$1" ] && usage
|
[ -z "$2" ] && usage
|
||||||
[ "$1" = "-h" ] && usage
|
[ "$1" = "-h" ] && usage
|
||||||
[ -z "$GL_USER" ] && die GL_USER not set
|
[ -z "$GL_USER" ] && die GL_USER not set
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue