We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f326ab1 + d3e7c7c commit ce64c9aCopy full SHA for ce64c9a
examples/Maestro/eg001TriggerWorkflow.sh
@@ -150,9 +150,9 @@ Status=$(curl -s -w "%{http_code}\n" -i --request POST ${decoded_trigger_url} \
150
#ds-snippet-end:Maestro1Step5
151
152
153
-instance_id=`cat $response | grep instance_id | sed 's/.*\"instance_id\":\"//' | sed 's/\".*//'`
+instance_id=$(grep '"instance_id":' $response | sed -n 's/.*"instance_id": "\([^"]*\)".*/\1/p')
154
# Store the instance_id into the config file
155
-echo $instance_id >config/INSTANCE_ID
+echo "${instance_id}" > config/INSTANCE_ID
156
157
echo ""
158
echo "Response:"
0 commit comments