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

This commit is contained in:
weslambert authored and Jason Ertel committed 2021-06-23 14:41:38 -04:00
1 parent caa14e0cad
commit c5b81f2f4b
1 file changed
+1 -1
@@ -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