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