example fix 'bug, not using errtrace when using VERBOSE'

#1088
This commit is contained in:
Patrick Schleizer 2015-07-28 22:47:40 +02:00
parent 7914ed795c
commit 995c98e512

View File

@ -1,5 +1,9 @@
#!/bin/sh
if [ "$VERBOSE" -ge 2 -o "$DEBUG" == "1" ]; then
set -x
fi
# ------------------------------------------------------------------------------
# Configurations and Conditionals
# ------------------------------------------------------------------------------
@ -10,11 +14,7 @@ export LC_ALL=POSIX
. ./builder_setup >/dev/null
. ./umount_kill.sh >/dev/null
if [ "$VERBOSE" -ge 2 -o "$DEBUG" == "1" ]; then
set -x
else
set -e
fi
set -e
if [ $# -eq 0 ]; then
echo "usage $0 <clean_image_file> <template_name>"