We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0807162 commit cf7a4c7Copy full SHA for cf7a4c7
1 file changed
overlays/turnkey.d/github-latest-release/usr/local/bin/gh_releases
@@ -64,7 +64,7 @@ get_page() {
64
tmp_file=$(mktemp $tmp_dir/XXXX.tmp)
65
curl "$USER" -b /tmp/cookies.txt -c /tmp/cookies.txt -s "${url}?page=${page}&per_page=100" > "$tmp_file" 2>/dev/null || true
66
if grep '"message"' "$tmp_file"; then
67
- fatal "$repo_path: $(sed -En '\|message|s|^.*: "(.*)",$|\1|p' "$tmp_file")"
+ fatal "$repo_path: $(cat "$tmp_file")"
68
else
69
grep -oP "\"$key\": \"\\K(.*)(?=\")" "$tmp_file"
70
[[ -n $DEBUG ]] || rm -f "$tmp_file"
0 commit comments