From b9f7d6534b7c1e9ffbe5035e711693cbd30045df Mon Sep 17 00:00:00 2001 From: opi Date: Tue, 22 Jul 2014 21:26:46 +0200 Subject: [PATCH] [fix] Add quote around variable. --- scripts/install | 6 +++--- scripts/upgrade | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/install b/scripts/install index e4f3eb1..3ed6803 100755 --- a/scripts/install +++ b/scripts/install @@ -34,10 +34,10 @@ sudo cp ../conf/nginx.conf $nginxconf sudo chown root: $nginxconf sudo chmod 600 $nginxconf -sudo yunohost app setting zerobin is_public -v "$is_public" -if [ $is_public = "Yes" ]; +sudo yunohost app setting zerobin is_public -v "$is_public" +if [ "$is_public" = "Yes" ]; then - sudo yunohost app setting zerobin skipped_uris -v "/" + sudo yunohost app setting zerobin skipped_uris -v "/" fi sudo service nginx reload diff --git a/scripts/upgrade b/scripts/upgrade index d6997af..ba2171a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -29,9 +29,9 @@ sudo cp ../conf/nginx.conf $nginxconf sudo chown root: $nginxconf sudo chmod 600 $nginxconf -if [ $is_public = "Yes" ]; +if [ "$is_public" = "Yes" ]; then - sudo yunohost app setting zerobin skipped_uris -v "/" + sudo yunohost app setting zerobin skipped_uris -v "/" fi sudo service nginx reload