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>
Upstream-commit: fa255c92df52f816ec15b60460f02c8e66534e76
Component: engine
This commit is contained in:
Carl Loa Odin
2016-09-14 11:55:29 +02:00
parent e77039e819
commit 69938656f3

View File

@ -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 <<EOOPTS
$(basename $0) [OPTIONS] <name>