Fix check-deploy skipping the root path

The root path, `/`, was treated as an invalid URL because it didn’t
contain any characters after the slash.
This commit is contained in:
Jakob Krigovsky
2015-07-09 19:13:27 +02:00
parent 4629a9909b
commit 5f03518ec8

View File

@@ -138,7 +138,7 @@ do
[[ -z "$CHECK_URL" || "$CHECK_URL" =~ ^\# ]] && continue
# Ignore if it's not a URL in a supported format
# shellcheck disable=SC1001
! [[ "$CHECK_URL" =~ ^(http(s)?:)?\/.+ ]] && continue
! [[ "$CHECK_URL" =~ ^(http(s)?:)?\/.* ]] && continue
if [[ "$CHECK_URL" =~ ^https?: ]] ; then
URL_PROTOCOL=${CHECK_URL%:*}