From 5f03518ec8a9e0a86b516bea657d5b51290a27f5 Mon Sep 17 00:00:00 2001 From: Jakob Krigovsky Date: Thu, 9 Jul 2015 19:13:27 +0200 Subject: [PATCH] Fix check-deploy skipping the root path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The root path, `/`, was treated as an invalid URL because it didn’t contain any characters after the slash. --- plugins/checks/check-deploy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/checks/check-deploy b/plugins/checks/check-deploy index b6413ef14..26b15ea45 100755 --- a/plugins/checks/check-deploy +++ b/plugins/checks/check-deploy @@ -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%:*}