Skip to content

Commit

Permalink
Update loop.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenKnoops authored Feb 15, 2022
1 parent 7cb1996 commit a2a5e29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/loop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand All @@ -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

0 comments on commit a2a5e29

Please sign in to comment.