|
|
@ -1,6 +1,6 @@
|
|
|
|
#!/usr/bin/env sh
|
|
|
|
#!/usr/bin/env sh
|
|
|
|
set -f
|
|
|
|
set -f
|
|
|
|
set -x
|
|
|
|
#set -x
|
|
|
|
|
|
|
|
|
|
|
|
MainMenu="Install/Tools/Download/Test/Dump"
|
|
|
|
MainMenu="Install/Tools/Download/Test/Dump"
|
|
|
|
|
|
|
|
|
|
|
@ -139,7 +139,7 @@ drawmenu() {
|
|
|
|
IFS="|"
|
|
|
|
IFS="|"
|
|
|
|
if [ "$1" = "Back" ] && [ "$(length $MENUSTACK)" -gt 1 ]; then
|
|
|
|
if [ "$1" = "Back" ] && [ "$(length $MENUSTACK)" -gt 1 ]; then
|
|
|
|
deleteFirst $MENUSTACK
|
|
|
|
deleteFirst $MENUSTACK
|
|
|
|
elif [ $(getNth 0 "$MENUSTACK") != "$1" ] && [ "$1" != "Back" ] && [ "$MODE" = "" ]; then
|
|
|
|
elif [ "$(getNth 0 \"$MENUSTACK\")" != "$1" ] && [ "$1" != "Back" ] && [ "$MODE" = "" ]; then
|
|
|
|
addFirst $1
|
|
|
|
addFirst $1
|
|
|
|
logprint "Adding $1"
|
|
|
|
logprint "Adding $1"
|
|
|
|
logprint "State: $MENUSTACK"
|
|
|
|
logprint "State: $MENUSTACK"
|
|
|
|