From 21c1a6205bc07a7e4b6846522c5c5b93af0f6935 Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Wed, 19 Feb 2014 08:29:04 -0500 Subject: [PATCH] Correct DIB long option parsing Fixes issues with option parsing. The --min-tmpfs and --image-cache options where previously broken. Closes-bug: 1282077 Change-Id: I40c62b16d854335902d1b6b5ceab7f0e1992623a --- bin/disk-image-create | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/disk-image-create b/bin/disk-image-create index 3b3d3f3f9..ab119bc01 100755 --- a/bin/disk-image-create +++ b/bin/disk-image-create @@ -78,7 +78,7 @@ function show_options () { INSTALL_PACKAGES="" COMPRESS_IMAGE="true" -TEMP=`getopt -o a:ho:xucnp: -l no-tmpfs,offline,help,min-tmpfs,image-size: -n $SCRIPTNAME -- "$@"` +TEMP=`getopt -o a:ho:xucnp: -l no-tmpfs,offline,help,min-tmpfs:,image-size:,image-cache: -n $SCRIPTNAME -- "$@"` if [ $? -ne 0 ] ; then echo "Terminating..." >&2 ; exit 1 ; fi # Note the quotes around `$TEMP': they are essential!