mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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>
This commit is contained in:
parent
3ae023cd22
commit
fa255c92df
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,8 @@
|
||||||
# a CentOS image on CentOS). See contrib/mkimage-rinse.sh for a way
|
# a CentOS image on CentOS). See contrib/mkimage-rinse.sh for a way
|
||||||
# to build CentOS images on other systems.
|
# to build CentOS images on other systems.
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
usage() {
|
usage() {
|
||||||
cat <<EOOPTS
|
cat <<EOOPTS
|
||||||
$(basename $0) [OPTIONS] <name>
|
$(basename $0) [OPTIONS] <name>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue