From 9f36e22fafb259e3a08940d833fa65d912005d5a Mon Sep 17 00:00:00 2001 From: Darryl Mendillo <1238655+darrylmendillo@users.noreply.github.com> Date: Fri, 4 Dec 2020 09:05:44 -0500 Subject: [PATCH] fix line breaks in config files --- src/submit_to_consul.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/submit_to_consul.sh b/src/submit_to_consul.sh index 2c3c2ff..ca28e4e 100755 --- a/src/submit_to_consul.sh +++ b/src/submit_to_consul.sh @@ -12,8 +12,8 @@ put_config() { FILE_NAME=$(echo ${FILE##*/} | sed 's/'"$DEPLOY"'/config/') # write config file at $CONSUL_PATH - echo "curl -fX PUT -d @$FILE $ADDRESS/$CONSUL_PATH/$SERVICE/$FILE_NAME" - /usr/bin/curl -fX PUT -d @$FILE $ADDRESS/$CONSUL_PATH/$SERVICE/$FILE_NAME + echo "curl -fX PUT --data-binary @$FILE $ADDRESS/$CONSUL_PATH/$SERVICE/$FILE_NAME" + /usr/bin/curl -fX PUT --data-binary @$FILE $ADDRESS/$CONSUL_PATH/$SERVICE/$FILE_NAME }