exitcode info

This commit is contained in:
rootzoll
2021-05-05 01:23:45 +02:00
parent acdba5802a
commit f3769d9507
2 changed files with 3 additions and 5 deletions

View File

@@ -148,7 +148,7 @@ do
sleep 3 sleep 3
done done
echo "# mainmenu signaled exit code '${exitMenuLoop}' --> exit to terminal" echo "# menu loop signaled exit code '${exitMenuLoop}' --> exit to terminal"
echo "***********************************" echo "***********************************"
echo "* RaspiBlitz Commandline" echo "* RaspiBlitz Commandline"
echo "* Here be dragons .. have fun :)" echo "* Here be dragons .. have fun :)"

View File

@@ -28,8 +28,7 @@ if [ "${migrationOS}" == "" ]; then
# on cancel - let user exit to terminal # on cancel - let user exit to terminal
if [ "$?" != "0" ]; then if [ "$?" != "0" ]; then
echo "# you selected cancel - exited to terminal" echo "# you selected cancel - sending exit code 1"
echo "# to re-start setup use command --> setup"
exit 1 exit 1
fi fi
@@ -86,8 +85,7 @@ else
# allow user to cancel to terminal on dialog main menu # allow user to cancel to terminal on dialog main menu
# all other cancels have other exit codes # all other cancels have other exit codes
if [ "$?" == "1" ]; then if [ "$?" == "1" ]; then
echo "# you selected cancel - exited to terminal" echo "# you selected cancel - sending exit code 1"
echo "# to re-start setup use command --> setup"
exit 1 exit 1
fi fi