From 0f89eb763584280b8fa02aef5f8d660b55e1ac64 Mon Sep 17 00:00:00 2001 From: "Darryl L. Pierce" Date: Tue, 15 Dec 2009 10:33:16 -0500 Subject: [PATCH] If the specified ISO does not exist, then the script dies. Before any tests are run, the ISO is checked and if it doesn't exist then the script exits with an explicit failure. --- autotest.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/autotest.sh b/autotest.sh index c67931a..904b961 100755 --- a/autotest.sh +++ b/autotest.sh @@ -723,6 +723,10 @@ done isoname=$(basename $isofile) isofile="$(cd `dirname $isofile`; pwd)/${isoname}" +if ! [ -s "${isofile}" ]; then + die "Missing or invalid file: ${isofile}" +fi + shift $(($OPTIND - 1)) set +u -- 2.11.4.GIT