mirror of
https://github.com/raspiblitz/raspiblitz.git
synced 2025-09-28 20:42:41 +02:00
test exit code of sub menus
This commit is contained in:
@@ -310,10 +310,7 @@ case $CHOICE in
|
|||||||
;;
|
;;
|
||||||
REPAIR)
|
REPAIR)
|
||||||
/home/admin/98repairMenu.sh
|
/home/admin/98repairMenu.sh
|
||||||
if [ $? -eq 99 ]; then
|
# exit code 1 -> main menu to break loop and also exit with
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
;;
|
|
||||||
PASSWORD)
|
PASSWORD)
|
||||||
sudo /home/admin/config.scripts/blitz.setpassword.sh
|
sudo /home/admin/config.scripts/blitz.setpassword.sh
|
||||||
;;
|
;;
|
||||||
@@ -360,5 +357,6 @@ case $CHOICE in
|
|||||||
exit 0
|
exit 0
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# go into loop - start script from beginning to load config/sate fresh
|
echo "exit code of last submenu: $?"
|
||||||
/home/admin/00mainMenu.sh
|
|
||||||
|
# exit with not 0 to signal that main menu wants to be looped
|
||||||
|
Reference in New Issue
Block a user