Skip to content

Commit

Permalink
fix: also test if jq exists at all
Browse files Browse the repository at this point in the history
  • Loading branch information
chetan committed Dec 10, 2021
1 parent 42e3ce8 commit 61365b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ fi

# Ensure we have jq-1.6
jq="jq"
if [[ "$($jq --version)" != "jq-1.6" ]]; then
if [[ ! -x "$(command -v $jq)" || "$($jq --version)" != "jq-1.6" ]]; then
if [[ $(uname) == "Darwin" ]]; then
jqbin="jq-osx-amd64"
elif [[ $(uname) == "Linux" ]]; then
Expand Down

0 comments on commit 61365b0

Please sign in to comment.