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 7
7
set -euo pipefail
8
8
9
9
fail_if_postgres_not_running () {
10
- containers=$( docker ps --filter " name=${container_name} " --quiet)
10
+ containers=$( docker ps --filter " name=^ ${container_name} $ " --quiet)
11
11
if [ -z " ${containers} " ]; then
12
12
echo " error: Docker container for PostgreSQL is not running"
13
13
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
14
14
container_name=postgres-${POSTGRES_VERSION}
15
15
16
16
fail_if_postgres_not_running () {
17
- containers=$( docker ps --filter " name=${container_name} " --quiet)
17
+ containers=$( docker ps --filter " name=^ ${container_name} $ " --quiet)
18
18
if [ -z " ${containers} " ]; then
19
19
echo " error: Docker container for PostgreSQL is not running"
20
20
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