File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 77set -euo pipefail
88
99fail_if_postgres_not_running () {
10- containers=$( docker ps --filter " name=${container_name} " --quiet)
10+ containers=$( docker ps --filter " name=^ ${container_name} $ " --quiet)
1111 if [ -z " ${containers} " ]; then
1212 echo " error: Docker container for PostgreSQL is not running"
1313 echo " error: Try running 'mise run postgres:up ${container_name} ' to start the container"
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ connection_url=postgresql://${POSTGRES_USER:-$USER}:${POSTGRES_PASSWORD}@${POSTG
1414container_name=postgres-${POSTGRES_VERSION}
1515
1616fail_if_postgres_not_running () {
17- containers=$( docker ps --filter " name=${container_name} " --quiet)
17+ containers=$( docker ps --filter " name=^ ${container_name} $ " --quiet)
1818 if [ -z " ${containers} " ]; then
1919 echo " error: Docker container for PostgreSQL is not running"
2020 echo " error: Try running 'mise run postgres:up ${container_name} ' to start the container"
You can’t perform that action at this time.
0 commit comments