uncomment lines and fix exit

This commit is contained in:
Alfred Gedeon 2020-09-16 15:22:48 -07:00
parent dbec23379a
commit a2f5ff6c18

View file

@ -5,7 +5,7 @@ echo "Verifying url links of: ${PROJECT}"
if [ ! -d "$PROJECT" ]
then
echo "Directory passed does not exist"
exit(2)
exit 2
fi
SCRIPT_RET=0
@ -38,21 +38,21 @@ function test {
then
CURL_RES=$RES
SCRIPT_RET=1
# elif [ "${CURL_RES}" == '403' ]
# then
# SCRIPT_RET=1
elif [ "${CURL_RES}" == '403' ]
then
SCRIPT_RET=1
fi
echo Result is: "${CURL_RES}"
echo "================================="
fi
done
# if [ "${SCRIPT_RET}" -eq 0 ]
# then
# exit(0)
# else
# exit(1)
# fi
if [ "${SCRIPT_RET}" -eq 0 ]
then
exit 0
else
exit 1
fi
}
test