From 6eefcbb87c1d13d3ff0623a7fd58d37261112d71 Mon Sep 17 00:00:00 2001 From: Andreas Follmann Date: Mon, 11 May 2015 15:21:52 +0200 Subject: [PATCH] prevent dismissal of URLs in CHECKS file that contain query params --- plugins/checks/check-deploy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/checks/check-deploy b/plugins/checks/check-deploy index 0d84b55eb73..0fa9476c234 100755 --- a/plugins/checks/check-deploy +++ b/plugins/checks/check-deploy @@ -130,9 +130,9 @@ do # Ignore empty lines and lines starting with # # shellcheck disable=SC1001 [[ -z "$CHECK_URL" || "$CHECK_URL" =~ ^\# ]] && continue - # Ignore variables - [[ "$CHECK_URL" =~ ^.+= ]] && continue - + # Ignore if it's not a URL in a supported format + ! [[ "$CHECK_URL" =~ ^(http(s)?:)?\/.+ ]] && continue + if [[ "$CHECK_URL" =~ ^https?: ]] ; then URL_PROTOCOL=${CHECK_URL%:*} CHECK_URL=${CHECK_URL#*:}