From 80ce402b361ec8c86d57230775a74f0ce128ac8c Mon Sep 17 00:00:00 2001 From: AUGMELO Date: Fri, 10 Feb 2023 17:49:59 +0000 Subject: [PATCH] fix: shellcheck --- lib/linter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linter.sh b/lib/linter.sh index ee403e3e..07ca8d7d 100755 --- a/lib/linter.sh +++ b/lib/linter.sh @@ -654,7 +654,7 @@ CallStatusAPI() { debug "URL: ${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/statuses/${GITHUB_SHA}" - GITHUB_DOMAIN=$(echo $GITHUB_DOMAIN | sed 's~http[s]*://~~g') + GITHUB_DOMAIN=$(echo "$GITHUB_DOMAIN" | cut -d '/' -f 3) ############################################## # Call the status API to create status check #