cloner: really abort when the subscript asks us to
Jason D. Clinton [Tue, 21 Apr 2009 22:40:25 +0000 (17:40 -0500)]
etc/cloner/startup.sh

index b97095e..fe93069 100755 (executable)
@@ -11,12 +11,22 @@ then
 fi
 
 /etc/cloner/get_setup.sh
+if [ $? != 0 ]; then
+       exit 1
+fi
+
 
 # if we are supposed to automatically format disks
 if [ "${_manualdisk}" = "" ]
 then
        /etc/cloner/prep_disks.sh
+       if [ $? != 0 ]; then
+               exit 1
+       fi
        /etc/cloner/installer.sh
+       if [ $? != 0 ]; then
+               exit 1
+       fi
 
        header "Cloner install finished"
        echo -e "The cloner install has finished successfully.  You may now reboot"