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:
@ -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>
|
||||
|
||||
Reference in New Issue
Block a user