From a2a5e29f3c7b392e034c656b910bef86af12197e Mon Sep 17 00:00:00 2001 From: Jeroen Knoops Date: Tue, 15 Feb 2022 23:00:57 +0100 Subject: [PATCH] Update loop.sh --- bin/loop.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/loop.sh b/bin/loop.sh index af11565..5968142 100755 --- a/bin/loop.sh +++ b/bin/loop.sh @@ -13,7 +13,7 @@ function check_target_repos { echo "Checking repository: $i" echo "Using ruleset parameter: $1" /app/repolinter/bin/repolinter.js lint \ - "$1" "$RULESET" \ + "$1" \ -g https://x-access-token:"$GITHUB_TOKEN"@github.com/"${i}" done } @@ -23,8 +23,8 @@ regex='(https?)://[-A-Za-z0-9\+&@#/%?=~_|!:,.;]*[-A-Za-z0-9\+&@#/%=~_|]' if [[ $RULESET =~ $regex ]] then echo "Link valid" - check_target_repos "--rulesetUrl" + check_target_repos "--rulesetUrl ""$RULESET""" else echo "No link, assuming base64 encoded file" - check_target_repos "-c" + check_target_repos "-c ""$RULESET""" fi