Change condition for exiting back_to function (#1582)

This commit is contained in:
Brosseau Valentin authored and GitHub committed 2025-09-12 15:22:48 +02:00
1 parent e57026a067
commit e9754b5460
1 file changed
+1 -1
+1 -1
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"