Skip to content

Commit

Permalink
pull-tekton-catalog-build-tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmaida committed Apr 21, 2024
1 parent 67454df commit fb57bf2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions task/jq/0.1/jq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,10 @@ spec:
script: |
echo "You submitted as input: $(params.input)"
echo "JQ script result:"
if [ "$(params.stringOrFile)" != "string" ] && [ "$(params.stringOrFile)" != "file" ]; then
echo "You must provide the following values 'string' or 'file' to the stringOrFile parameter."
exit 1
fi
if [ "string" = "$(params.stringOrFile)" ]; then
printf "%s" "$(params.input)" > tmp.json
jq "$(params.options)" '$(params.filter)' tmp.json | tee "$(results.jq-script-outcome.path)"
Expand Down

0 comments on commit fb57bf2

Please sign in to comment.