From db6a33e23c446c8cd00ad3647082c833d7e5edc4 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 25 May 2015 16:20:35 -0400 Subject: cmd/installer-pc: Require -a and -p --- (limited to 'lib/cmd') diff --git a/lib/cmd/installer-pc.sh b/lib/cmd/installer-pc.sh index 59f7408..7a12e1a 100644 --- a/lib/cmd/installer-pc.sh +++ b/lib/cmd/installer-pc.sh @@ -43,6 +43,14 @@ cmd_installer_pc_main() fi shift $(($OPTIND - 1)) + if [ "x${cmd_installer_pc_opt_a+set}" != 'xset' ]; then + print_cmd_usage 'installer-pc' >&2 + exit 1 + fi + if [ "x${cmd_installer_pc_opt_p+set}" != 'xset' ]; then + print_cmd_usage 'installer-pc' >&2 + exit 1 + fi if [ ${#} -ne 2 ]; then print_cmd_usage 'installer-pc' >&2 exit 1 -- cgit v0.9.1