Fix output so that it can be redirected to local file with appropriate syntax

This commit is contained in:
weslambert
2021-06-23 09:17:37 -04:00
committed by Jason Ertel
parent caa14e0cad
commit c5b81f2f4b

View File

@@ -21,5 +21,5 @@
if [ "$1" == "" ]; then
{{ ELASTICCURL }} -s -k -L https://{{ NODEIP }}:9200/_ingest/pipeline/* | jq .
else
{{ ELASTICCURL }} -s -k -L https://{{ NODEIP }}:9200/_ingest/pipeline/$1 | jq .
{{ ELASTICCURL }} -s -k -L https://{{ NODEIP }}:9200/_ingest/pipeline/$1 | jq .[]
fi