From 8a41545d17c21de6c9f6beb5deec8f17569ce65c Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 4 Jun 2018 23:48:17 +0000 Subject: [PATCH] fix echo newline expansion --- usr/share/install_helper.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/usr/share/install_helper.sh b/usr/share/install_helper.sh index 65f7963..3ee4236 100644 --- a/usr/share/install_helper.sh +++ b/usr/share/install_helper.sh @@ -209,7 +209,10 @@ if [ ! -e "$my_config" ]; then echo "secret: $my_secret" >> "$my_config" fi if [ -n "$my_servernames" ]; then - echo "servernames:\n $my_servernames: {}" >> "$my_config" + # TODO could use printf or echo -e, + # just not sure how portable they are + echo "servernames:" >> "$my_config" + echo " $my_servernames: {}" >> "$my_config" fi #echo "dynamic_ports:\n []" >> "$my_config" cat usr/share/$my_app.tpl.yml >> "$my_config"