Add missing 'set +x', move debug message to be visible

Since 'true' is used to show traced messages, it needs to be placed
after 'set -x'.
This commit is contained in:
Marek Marczykowski-Górecki 2015-08-05 01:41:35 +02:00
parent 5897b1a882
commit 0b8d27c1fb
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -51,6 +51,7 @@ umount_kill() {
# If enabled, turn off xtrace and remember its current setting.
if test -o xtrace ; then
true "$FUNCNAME: Disabling xtrace, because variable VERBOSE (${VERBOSE}) is lower than or equal 2..."
set +x
XTRACE_WAS_SET=true
fi
fi
@ -105,8 +106,8 @@ umount_kill() {
done
if [ "$XTRACE_WAS_SET" == "true" ] ; then
true "$FUNCNAME: Restoring xtrace..."
set -x
true "$FUNCNAME: Restoring xtrace..."
fi
}