mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-05-17 18:25:26 +00:00
chore: add bad-credentials exception for install script
* fix typo at closing if statement
This commit is contained in:
committed by
vinicius douglas cerutti
parent
27d508fa03
commit
3872752338
@@ -141,6 +141,10 @@ else
|
|||||||
releases=$(curl -s "$release_url" --header "Authorization: Bearer ${GITHUB_TOKEN}")
|
releases=$(curl -s "$release_url" --header "Authorization: Bearer ${GITHUB_TOKEN}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ $releases == *"Bad credentials"* ]]; then
|
||||||
|
echo "Authentication failed: Invalid GITHUB_TOKEN. Please check or remove your token."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
if [[ $releases == *"API rate limit exceeded"* ]]; then
|
if [[ $releases == *"API rate limit exceeded"* ]]; then
|
||||||
echo "Github rate-limiter failed the request. Either authenticate or wait a couple of minutes."
|
echo "Github rate-limiter failed the request. Either authenticate or wait a couple of minutes."
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user