summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-05-26 17:59:50 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-05-26 18:00:38 (EDT)
commitb7aa1f2c80332cad4c6d156726ab56591cf1ee12 (patch)
treeb5dfa1263ea661b5b959aea60cdbe2f61ba53cdd /lib
parent6d9c899aa8a8d14ad054d953e3eabef6e0dbdb06 (diff)
cmd/installer-pc: Require non-null -a and -p opt args
Previously, something like the following would work: # prokit installer-pc -a '' -p '' dev/trunk /dev/sdb
Diffstat (limited to 'lib')
-rw-r--r--lib/cmd/installer-pc.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/cmd/installer-pc.sh b/lib/cmd/installer-pc.sh
index 7a12e1a..69381d0 100644
--- a/lib/cmd/installer-pc.sh
+++ b/lib/cmd/installer-pc.sh
@@ -43,11 +43,11 @@ cmd_installer_pc_main()
fi
shift $(($OPTIND - 1))
- if [ "x${cmd_installer_pc_opt_a+set}" != 'xset' ]; then
+ if [ "x${cmd_installer_pc_opt_a-}" = 'x' ]; then
print_cmd_usage 'installer-pc' >&2
exit 1
fi
- if [ "x${cmd_installer_pc_opt_p+set}" != 'xset' ]; then
+ if [ "x${cmd_installer_pc_opt_p-}" = 'x' ]; then
print_cmd_usage 'installer-pc' >&2
exit 1
fi