Skip to content

Commit 6c71786

Browse files
committed
refactor: make shellcheck fixes
Refs: PT-1952
1 parent a7d56c2 commit 6c71786

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docker-entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -e
33

4-
if [ -z "$SKIP_DATABASE_CHECK" -o "$SKIP_DATABASE_CHECK" = "0" ]; then
4+
if [ -z "$SKIP_DATABASE_CHECK" ] || [ "$SKIP_DATABASE_CHECK" = "0" ]; then
55
until nc -z -v -w30 "$DATABASE_HOST" 5432
66
do
77
echo "Waiting for postgres database connection..."
@@ -18,7 +18,7 @@ if [[ "$APPLY_MIGRATIONS" = "1" ]]; then
1818
fi
1919

2020
# Start server
21-
if [[ ! -z "$@" ]]; then
21+
if [[ -n "$*" ]]; then
2222
"$@"
2323
elif [[ "$DEV_SERVER" = "1" ]]; then
2424
python ./manage.py runserver 0.0.0.0:8081

0 commit comments

Comments
 (0)