From 7bdaa210a1364da5c4946a7de9349de6dbbaa132 Mon Sep 17 00:00:00 2001 From: Sheng Yang Date: Mon, 16 May 2011 13:57:05 -0700 Subject: [PATCH] Add error check for buildsystemvm.sh set -e can stop the script if something went wrong. set -u can stop on uninitialized variable reference. --- patches/systemvm/debian/buildsystemvm.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/patches/systemvm/debian/buildsystemvm.sh b/patches/systemvm/debian/buildsystemvm.sh index 66b03f3f600..07eaacf9cf5 100755 --- a/patches/systemvm/debian/buildsystemvm.sh +++ b/patches/systemvm/debian/buildsystemvm.sh @@ -22,6 +22,8 @@ set -x +set -u +set -e IMAGENAME=systemvm LOCATION=/var/lib/images/systemvm