Skip to content
Snippets Groups Projects
Commit b4ef32eb authored by Oriol Tintó's avatar Oriol Tintó
Browse files

Fix check_url function.

parent 858a469d
No related branches found
No related tags found
No related merge requests found
Pipeline #19094 passed
...@@ -33,7 +33,7 @@ function check_url() { ...@@ -33,7 +33,7 @@ function check_url() {
# Check if the url exists # Check if the url exists
local url="$1" local url="$1"
status=$( status=$(
(curl -s --head $url | head -n 1 | grep "HTTP/2 200 " >/dev/null) (curl -s --head $url | head -n 1 | grep "HTTP/1.[01] [23].." >/dev/null)
echo $? echo $?
) )
if [ $status -eq 0 ]; then if [ $status -eq 0 ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment