We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89e6956 commit 41b518fCopy full SHA for 41b518f
install/assets/functions/10-db-backup
@@ -1096,16 +1096,17 @@ db_backup_container_init() {
1096
debug() {
1097
case "${1}" in
1098
off)
1099
- DEBUG_MODE=${OLD_DEBUG_MODE}
+ DEBUG_MODE=${_original_debug_mode}
1100
if var_true "${DEBUG_MODE}" ; then
1101
set -x
1102
else
1103
set +x
1104
fi
1105
-
1106
;;
1107
on)
1108
- OLD_DEBUG_MODE=${DEBUG_MODE}
+ if [ -z "${_original_debug_mode}" ]; then
+ _original_debug_mode="${DEBUG_MODE}"
1109
+ fi
1110
1111
1112
esac
0 commit comments