mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
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
|
||||
# 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%:*}
|
||||
|
||||
Reference in New Issue
Block a user