summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cady <d@jerkface.net>2020-05-06 20:20:33 -0400
committerAndrew Cady <d@jerkface.net>2020-05-06 20:20:33 -0400
commit2da46b65a15a0e5a8aa7c6f96acc2c41524faa07 (patch)
treeeac97334db49561c4109f8d7349cb4c30ebe8537
parent11ea0b20cd1284b6073ed80e969f882d1ae07ec5 (diff)
xorriso: properly detect getopt errors
-rwxr-xr-xsrc/xorriso-usb.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xorriso-usb.sh b/src/xorriso-usb.sh
index 594ff78..e6e4778 100755
--- a/src/xorriso-usb.sh
+++ b/src/xorriso-usb.sh
@@ -187,8 +187,9 @@ outdev=
187GPG_INPUT_DIR= 187GPG_INPUT_DIR=
188child_dir=$samizdat_child_dir/child.$$ 188child_dir=$samizdat_child_dir/child.$$
189 189
190eval set -- "$(getopt -o '' --long bootloader,reuse-child:,adam,usb,detach,in:,out:,test -n "$0" -- "$@")" || 190OPT=$(getopt -o '' --long 'bootloader,reuse-child:,adam,usb,detach,in:,out:,test' -n "$0" -- "$@") || die 'getopt error'
191 die 'getopt error' 191eval set -- "$OPT"
192unset OPT
192 193
193ADAM=; DETACH=; USB=y 194ADAM=; DETACH=; USB=y
194while [ $# -gt 0 ]; do 195while [ $# -gt 0 ]; do