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'.
pull/1/head R3.0
Marek Marczykowski-Górecki 9 years ago
parent 5897b1a882
commit 0b8d27c1fb
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -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
}

Loading…
Cancel
Save