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,7 +35,7 @@ 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
}