Merge "Fix disk-image-create's getopt error handling:"
This commit is contained in:
commit
783e57ef4f
@ -32,8 +32,8 @@ function show_options () {
|
||||
|
||||
COMPRESS_IMAGE="true"
|
||||
TEMP=`getopt -o a:ho:xu -n $SCRIPTNAME -- "$@"`
|
||||
echo "XXX $TEMP"
|
||||
if [ $? != 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi
|
||||
echo "XXX $TEMP"
|
||||
|
||||
# Note the quotes around `$TEMP': they are essential!
|
||||
eval set -- "$TEMP"
|
||||
|
Loading…
Reference in New Issue
Block a user