From fa255c92df52f816ec15b60460f02c8e66534e76 Mon Sep 17 00:00:00 2001 From: Carl Loa Odin Date: Wed, 14 Sep 2016 11:55:29 +0200 Subject: [PATCH] Add errexit to mkimage-yum.sh Add errexit to mkimage-yum bash script to abort early. This to prevent disaster when mktemp fails and leave $target variable empty. Signed-off-by: Carl Loa Odin --- contrib/mkimage-yum.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/contrib/mkimage-yum.sh b/contrib/mkimage-yum.sh index 919160c844..29da170480 100755 --- a/contrib/mkimage-yum.sh +++ b/contrib/mkimage-yum.sh @@ -6,6 +6,8 @@ # a CentOS image on CentOS). See contrib/mkimage-rinse.sh for a way # to build CentOS images on other systems. +set -e + usage() { cat <