Skip to content

Commit

Permalink
get-github-release: use proper bool flag technique for jq
Browse files Browse the repository at this point in the history
  • Loading branch information
balupton committed Nov 7, 2023
1 parent bc7d085 commit 126742b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions commands/get-github-release
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,9 @@ function get_github_release() (
'--latest-tag-name') action='latest-tag-name' ;;
'--assets') action='assets' ;;
'--api-url') action='api-url' ;;
'--no-jq') use_jq='no' ;;
'--jq') use_jq='yes' ;;
'--no-jq'* | '--jq'*)
use_jq="$(get-flag-value jq --missing="$use_jq" -- "$item" | echo-affirmative --stdin)"
;;
'--'*) help "An unrecognised flag was provided: $item" ;;
*)
if test -z "$slug"; then
Expand Down

0 comments on commit 126742b

Please sign in to comment.