We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c801348 commit 74b4fa1Copy full SHA for 74b4fa1
overlays/turnkey.d/github-latest-release/usr/local/bin/gh_releases
@@ -89,7 +89,9 @@ get_page() {
89
page=$3
90
tmp_file=$(mktemp $tmp_dir/XXXX.tmp)
91
curl "$USER" -b /tmp/cookies.txt -c /tmp/cookies.txt -s "${url}?page=${page}&per_page=100" > "$tmp_file" 2>/dev/null || true
92
- if grep '"message"' "$tmp_file"; then
+ if grep "Bad credentials" "$tmp_file" >/dev/null ; then
93
+ fatal "Bad GitHub credentials"
94
+ elif grep '"message"' "$tmp_file"; then
95
fatal "$repo_path: $(sed -En '\|message|s|^.*: "(.*)",$|\1|p' "$tmp_file")"
96
else
97
grep -oP "\"$key\": \"\\K(.*)(?=\")" "$tmp_file"
0 commit comments