Skip to content

Commit

Permalink
change jq (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiranAvidov authored Aug 8, 2022
1 parent a92d411 commit 8c9e492
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/mac/utils_functions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ function find_param () {
local requested_param=""

while read -r param; do
local name=$(echo -e "$param" | jq -r '.name')
local name=$(echo -e "$param" | $jq_bin -r '.name')
if [[ -z "$name" || "$name" = null ]]; then
continue
fi

if [[ "$name" = "$requested_name" ]]; then
requested_param="$param"
fi
done < <(echo -e "$params" | jq -c '.')
done < <(echo -e "$params" | $jq_bin -c '.')

echo -e "$requested_param"
}
Expand Down

0 comments on commit 8c9e492

Please sign in to comment.