mirror of
https://github.com/brain-hackers/brain-config.git
synced 2024-12-22 20:20:06 +09:00
fix exit status in case of error
This commit is contained in:
parent
57804e5963
commit
265e7a5326
@ -37,7 +37,7 @@ EOF
|
|||||||
|
|
||||||
# now set up an init.d script
|
# now set up an init.d script
|
||||||
cat <<\EOF > /etc/init.d/resize2fs_once &&
|
cat <<\EOF > /etc/init.d/resize2fs_once &&
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
### BEGIN INIT INFO
|
### BEGIN INIT INFO
|
||||||
# Provides: resize2fs_once
|
# Provides: resize2fs_once
|
||||||
# Required-Start:
|
# Required-Start:
|
||||||
@ -179,7 +179,7 @@ while true; do
|
|||||||
"finish" "Finish config and don't start raspi-config at boot" \
|
"finish" "Finish config and don't start raspi-config at boot" \
|
||||||
3>&1 1>&2 2>&3)
|
3>&1 1>&2 2>&3)
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
exit 0;
|
exit 1;
|
||||||
else
|
else
|
||||||
"do_$FUN" || whiptail --msgbox "There was an error running do_$FUN" 20 60 1
|
"do_$FUN" || whiptail --msgbox "There was an error running do_$FUN" 20 60 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user