Skip to content

Commit

Permalink
feat: suppress spurious output
Browse files Browse the repository at this point in the history
This is really a debug message for the plugin developer. Users should
not see this. It originally came from the plugin template.

To my knowledge, there are no existing flags/env vars to instruct debug
output, so we just commented it out for now.
  • Loading branch information
jbeard6 committed Nov 26, 2024
1 parent 4b99bc6 commit 118b9c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/latest-stable
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ fi
# when there are releases redirect_url="REPO/releases/tag/v<VERSION>"
redirect_url=$(curl "${curl_opts[@]}" "$GH_REPO/releases/latest" | sed -n -e "s|^location: *||p" | sed -n -e "s|\r||p")
version=
printf "redirect url: %s\n" "$redirect_url" >&2
# DEBUG: printf "redirect url: %s\n" "$redirect_url" >&2
if [[ "$redirect_url" == "$GH_REPO/releases" ]]; then
version="$(list_all_versions | sort_versions | tail -n1 | xargs echo)"
else
Expand Down

0 comments on commit 118b9c5

Please sign in to comment.