From 265e7a5326645bb4cde1491e8b8b44b08f3cbe9c Mon Sep 17 00:00:00 2001 From: Alex Bradbury Date: Sun, 17 Jun 2012 13:43:38 +0100 Subject: [PATCH] fix exit status in case of error --- raspi-config | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/raspi-config b/raspi-config index f2727a7..4783079 100755 --- a/raspi-config +++ b/raspi-config @@ -37,7 +37,7 @@ EOF # now set up an init.d script cat <<\EOF > /etc/init.d/resize2fs_once && - #!/bin/sh +#!/bin/sh ### BEGIN INIT INFO # Provides: resize2fs_once # Required-Start: @@ -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