Change condition for exiting back_to function (#1582)

This commit is contained in:
Brosseau Valentin
2025-09-12 15:22:48 +02:00
committed by David Heinemeier Hansson
parent 8356358097
commit d09b6aa42a

View File

@@ -8,7 +8,7 @@ BACK_TO_EXIT=false
back_to() { back_to() {
local parent_menu="$1" local parent_menu="$1"
if [[ "$DIRECT_ACCESS" == "true" ]]; then if [[ "$BACK_TO_EXIT" == "true" ]]; then
exit 0 exit 0
elif [[ -n "$parent_menu" ]]; then elif [[ -n "$parent_menu" ]]; then
"$parent_menu" "$parent_menu"