diff --git a/refine b/refine index 5f9dd12ac..5254f905c 100755 --- a/refine +++ b/refine @@ -157,7 +157,8 @@ check_running() { if [ "$CURL" ] ; then curl -s -S -f $URL > /dev/null 2>&1 - if [ "$?" = "7" ] || [ "$?" = "22" ] ; then + CURL_RETURN=$? + if [ $CURL_RETURN -eq "7" ] || [ $CURL_RETURN -eq "22" ] ; then NOT_RUNNING="1" fi elif [ "$WGET" ] ; then