lib: fix: replace undue export statements with declare -g

This commit is contained in:
Ricardo Pardini
2023-03-28 20:20:56 +02:00
committed by Igor Pečovnik
parent 77921725fb
commit ed0b406265
18 changed files with 35 additions and 35 deletions

View File

@@ -77,7 +77,7 @@ function main_trap_handler() {
fi
if [[ ${trap_exit_code} -gt 0 ]] && [[ "${ERROR_DEBUG_SHELL}" == "yes" ]]; then
export ERROR_DEBUG_SHELL=no # dont do it twice
declare -g ERROR_DEBUG_SHELL=no # dont do it twice
display_alert "MOUNT" "${MOUNT}" "debug"
display_alert "SDCARD" "${SDCARD}" "debug"
display_alert "ERROR_DEBUG_SHELL=yes, starting a shell." "ERROR_DEBUG_SHELL; exit to cleanup." "debug"