From 1a30c7893cbbc8a69e4353c8a34193d26aa5e16a Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 02 Sep 2014 22:01:04 -0400 Subject: cmd/install: Exit on illegal option --- (limited to 'lib') diff --git a/lib/cmd/install.sh b/lib/cmd/install.sh index 74242cc..14488f3 100644 --- a/lib/cmd/install.sh +++ b/lib/cmd/install.sh @@ -41,7 +41,10 @@ cmd_install_main() local mirror= local foreign= - get_options "${@}" + if ! get_options "${@}"; then + print_cmd_usage 'install' >&2 + exit 1 + fi shift $(($OPTIND - 1)) if [ ${#} -lt 2 ]; then -- cgit v0.9.1