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:
parent
1a5f68e353
commit
cac6d44166
@ -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!"
|
||||||
|
Loading…
Reference in New Issue
Block a user