Skip to content

Commit cf7a4c7

Browse files
committed
Fix buggy sed (wasn't picking up message) - just dump the whole json response
1 parent 0807162 commit cf7a4c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • overlays/turnkey.d/github-latest-release/usr/local/bin

overlays/turnkey.d/github-latest-release/usr/local/bin/gh_releases

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ get_page() {
6464
tmp_file=$(mktemp $tmp_dir/XXXX.tmp)
6565
curl "$USER" -b /tmp/cookies.txt -c /tmp/cookies.txt -s "${url}?page=${page}&per_page=100" > "$tmp_file" 2>/dev/null || true
6666
if grep '"message"' "$tmp_file"; then
67-
fatal "$repo_path: $(sed -En '\|message|s|^.*: "(.*)",$|\1|p' "$tmp_file")"
67+
fatal "$repo_path: $(cat "$tmp_file")"
6868
else
6969
grep -oP "\"$key\": \"\\K(.*)(?=\")" "$tmp_file"
7070
[[ -n $DEBUG ]] || rm -f "$tmp_file"

0 commit comments

Comments
 (0)