Quote whitelabel to allow whitespace (#33)

The SHYNET_WHITELABEL variable was being used without quotes,
which breaks the commnand if it contains whitespaces
This commit is contained in:
Santiago Alessandri 2020-05-16 21:23:38 -07:00 committed by GitHub
parent 1a5f68e353
commit cac6d44166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,11 +35,11 @@ fi
if [[ -n $SHYNET_WHITELABEL && ${sanity_results[3]} == True ]]; then if [[ -n $SHYNET_WHITELABEL && ${sanity_results[3]} == True ]]; then
echo "Setting whitelabel..." 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 echo "Failed to set whitelabel, exiting" & exit 1
} }
else else
echo "Making no changes to whitelabel." echo "Making no changes to whitelabel."
fi fi
echo "Startup checks complete!" echo "Startup checks complete!"