Skip to content

Commit b94e15c

Browse files
authored
fix: handle no port exists scanario gradefully (#430)
1 parent 7595b9a commit b94e15c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PRISMA_MIGRATIONS_TABLE="_prisma_migrations"
66

77
# Extract DB_HOST and DB_PORT from POSTGRES_HOST
88
DB_HOST=$(echo $POSTGRES_HOST | cut -d':' -f1)
9-
DB_PORT=$(echo $POSTGRES_HOST | cut -d':' -f2)
9+
DB_PORT=$(echo $POSTGRES_HOST | cut -s -d':' -f2)
1010

1111
# Default to port 5432 if DB_PORT is not set
1212
if [ -z "$DB_PORT" ]; then

0 commit comments

Comments
 (0)