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

This commit is contained in:
Sebastian Koslowski 2012-11-22 11:57:18 +01:00 committed by Sitaram Chamarty
parent 7cec71b0ef
commit 96be9503ef

View file

@ -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