diff --git a/task/jq/0.1/jq.yaml b/task/jq/0.1/jq.yaml index 3947bb0974..4608916e5a 100644 --- a/task/jq/0.1/jq.yaml +++ b/task/jq/0.1/jq.yaml @@ -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)"