From 78d6cb292d79d302043bcea9190de542505b459d Mon Sep 17 00:00:00 2001 From: Dustin Van Buskirk Date: Tue, 3 Apr 2018 15:21:38 -0700 Subject: [PATCH] Update codefresh-build-complex-command --- codefresh-build-complex-command | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codefresh-build-complex-command b/codefresh-build-complex-command index 33a5a24..4daa47d 100644 --- a/codefresh-build-complex-command +++ b/codefresh-build-complex-command @@ -8,5 +8,6 @@ steps: # Simple commands can be written inline - go test # Complex commands should be places in a block that takes the string "as is" + # Some bash characters should be wrapped with quotes to prevent interpolation For example an ampersand in a URL - >- - curl -X POST -H 'Content-type: application/json' --data "{\"text\": \"-----------------\"}" https://hooks.slack.com/services/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 + curl -X POST -H 'Content-type: application/json' --data "{\"text\": \"-----------------\"}" 'https://hooks.slack.com/services/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&'