Merge pull request #2278 from Negens/patch-2

Update the check_running() function in refine
This commit is contained in:
Antonin Delpeuch 2020-01-08 14:48:02 +01:00 committed by GitHub
commit 8abf1d8ebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

3
refine
View File

@ -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