diff --git a/diskimage-create/image-tests.sh b/diskimage-create/image-tests.sh index 653b3122a8..650c6ddbe1 100755 --- a/diskimage-create/image-tests.sh +++ b/diskimage-create/image-tests.sh @@ -19,7 +19,9 @@ echo "Examining the Amphora image. This will take some time." -if [ "$1" ]; then +if [ "$1" -a -f "$1" ]; then + AMP_IMAGE_LOCATION=$1 +elif [ "$1" ]; then AMP_IMAGE_LOCATION=$1/amphora-x64-haproxy.qcow2 else AMP_IMAGE_LOCATION=amphora-x64-haproxy.qcow2