Skip to content

Commit 5b9a2bd

Browse files
authored
Merge pull request #525 from artoonie/update-serve
update serve.sh to use double brackets
2 parents a804b2b + ffb45ed commit 5b9a2bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/serve.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ source venv/bin/activate
1212
admin_exists=$(python manage.py shell -c "from django.contrib.auth import get_user_model; User = get_user_model(); print(User.objects.filter(email='$OFFLINE_ADMIN', is_superuser=True).exists())")
1313

1414
# Prompt the user to create the admin if not
15-
if [ "$admin_exists" = "False" && "$OFFLINE_MODE" = "True" ]; then
15+
if [[ "$admin_exists" = "False" && "$OFFLINE_MODE" = "True" ]]; then
1616
echo "Admin user with email $OFFLINE_ADMIN does not exist. Please create one."
1717
python manage.py createsuperuser --email $OFFLINE_ADMIN
1818
else
@@ -22,4 +22,4 @@ fi
2222
# Clear cache, compress and run the server
2323
python3 manage.py clearCache
2424
python3 manage.py compress
25-
python3 manage.py runserver
25+
python3 manage.py runserver

0 commit comments

Comments
 (0)