From cac6d44166e5cf3ded7d209dbc94beffd020e1d9 Mon Sep 17 00:00:00 2001 From: Santiago Alessandri Date: Sat, 16 May 2020 21:23:38 -0700 Subject: [PATCH] Quote whitelabel to allow whitespace (#33) The SHYNET_WHITELABEL variable was being used without quotes, which breaks the commnand if it contains whitespaces --- shynet/startup_checks.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shynet/startup_checks.sh b/shynet/startup_checks.sh index 0363144..6193b0a 100755 --- a/shynet/startup_checks.sh +++ b/shynet/startup_checks.sh @@ -35,11 +35,11 @@ fi if [[ -n $SHYNET_WHITELABEL && ${sanity_results[3]} == True ]]; then echo "Setting whitelabel..." { - ./manage.py whitelabel $SHYNET_WHITELABEL && echo "Whitelabel set! Whitelabel: $SHYNET_WHITELABEL" + ./manage.py whitelabel "$SHYNET_WHITELABEL" && echo "Whitelabel set! Whitelabel: $SHYNET_WHITELABEL" } || { echo "Failed to set whitelabel, exiting" & exit 1 } else echo "Making no changes to whitelabel." fi -echo "Startup checks complete!" \ No newline at end of file +echo "Startup checks complete!"