diff --git a/installer_auto.sh b/installer_auto.sh index cf7108c..65fd0c9 100644 --- a/installer_auto.sh +++ b/installer_auto.sh @@ -312,14 +312,16 @@ phase_five () { # do the suto thinggg if [ -f $status_log ]; then - if [[ $(cat $installer_status) =~ "*1*" ]]; then + if [[ "$(cat $installer_status)" =~ "*1*" ]]; then phase_two - elif [[ $(cat $installer_status) =~ "*2*" ]]; then + elif [[ "$(cat $installer_status)" =~ "*2*" ]]; then phase_three - elif [[ $(cat $installer_status) =~ "*3*" ]]; then + elif [[ "$(cat $installer_status)" =~ "*3*" ]]; then phase_four - elif [[ $(cat $installer_status) =~ "*4*" ]]; then + elif [[ "$(cat $installer_status)" =~ "*4*" ]]; then phase_five + else + exit 1 fi else phase_one