Skip to content

Commit 3872752

Browse files
committed
chore: add bad-credentials exception for install script
* fix typo at closing if statement
1 parent 27d508f commit 3872752

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

hack/install_kustomize.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ else
141141
releases=$(curl -s "$release_url" --header "Authorization: Bearer ${GITHUB_TOKEN}")
142142
fi
143143

144+
if [[ $releases == *"Bad credentials"* ]]; then
145+
echo "Authentication failed: Invalid GITHUB_TOKEN. Please check or remove your token."
146+
exit 1
147+
fi
144148
if [[ $releases == *"API rate limit exceeded"* ]]; then
145149
echo "Github rate-limiter failed the request. Either authenticate or wait a couple of minutes."
146150
exit 1

0 commit comments

Comments
 (0)