fix exit status in case of error

This commit is contained in:
Alex Bradbury 2012-06-17 13:43:38 +01:00
parent 57804e5963
commit 265e7a5326

View File

@ -179,7 +179,7 @@ while true; do
"finish" "Finish config and don't start raspi-config at boot" \
3>&1 1>&2 2>&3)
if [ $? -ne 0 ]; then
exit 0;
exit 1;
else
"do_$FUN" || whiptail --msgbox "There was an error running do_$FUN" 20 60 1
fi