From ccd7811dc030f8f80389710439454da29c82fd28 Mon Sep 17 00:00:00 2001 From: Frederic Lepied Date: Tue, 25 Nov 2014 22:25:31 +0100 Subject: [PATCH] disk-image-create: fix test when no argument is given. Avoid a warning when multiple arguments are passed to disk-image-create like: bin/disk-image-create: 146: [: aa: unexpected operator Change-Id: I619d7bf2e4b56885d629019b80b249bc80b8f43e --- 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 11d48e21..9fdb304c 100755 --- a/bin/disk-image-create +++ b/bin/disk-image-create @@ -143,7 +143,7 @@ if [ "$IS_RAMDISK" == "1" ]; then fi # If no elements are specified theres no way we can succeed -if [ -z "$@" ]; then +if [ -z "$*" ]; then echo "ERROR: At least one distribution root element must be specified" exit 1 fi