From 1939cd4849ff3e52e76ddb91d9acd30bca3a0495 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sat, 17 May 2014 10:58:00 +0100 Subject: [PATCH] p2v-iso: unset CDPATH, set -e at the top of the virt-builder-target script. --- p2v-iso/virt-builder-target.sh.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/p2v-iso/virt-builder-target.sh.in b/p2v-iso/virt-builder-target.sh.in index ff402bdd9..36d09a0c2 100644 --- a/p2v-iso/virt-builder-target.sh.in +++ b/p2v-iso/virt-builder-target.sh.in @@ -16,6 +16,9 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +unset CDPATH +set -e + if [ -z "$OUTPUT" ]; then echo "$0: You didn't set the output file or device (OUTPUT). Read the README file!" exit 1