From 2391b7fcf8eba6e85705499201f3cfac9d14c96d Mon Sep 17 00:00:00 2001 From: Allen Hancock Date: Sun, 26 Mar 2017 21:21:22 -0500 Subject: [PATCH] update bash if/else statements (#342) --- discourse-setup | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/discourse-setup b/discourse-setup index d6e25b6..b5f89f2 100755 --- a/discourse-setup +++ b/discourse-setup @@ -476,9 +476,8 @@ ask_user_for_config() { local src='^ #\?- "templates\/web.ssl.template.yml"' local dst=' #\- "templates\/web.ssl.template.yml"' sed -i -e "s/$src/$dst/w $changelog" $config_file - if [ -s $changelog ] + if [ ! -s $changelog ] then - else update_ok="n" echo "web.ssl.template.yml NOT DISABLED--Are you using a non-standard template?" fi @@ -486,9 +485,8 @@ ask_user_for_config() { local dst=' #- "templates\/web.letsencrypt.ssl.template.yml"' sed -i -e "s/$src/$dst/w $changelog" $config_file - if [ -s $changelog ] + if [ ! -s $changelog ] then - else update_ok="n" echo "web.ssl.template.yml NOT DISABLED--Are you using a non-standard template?" fi -- 2.25.1