Browse code

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 <carlodin@gmail.com>

Carl Loa Odin authored on 2016/09/14 18:55:29
Showing 1 changed files
... ...
@@ -6,6 +6,8 @@
6 6
 # a CentOS image on CentOS).  See contrib/mkimage-rinse.sh for a way
7 7
 # to build CentOS images on other systems.
8 8
 
9
+set -e
10
+
9 11
 usage() {
10 12
     cat <<EOOPTS
11 13
 $(basename $0) [OPTIONS] <name>