mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-07-29 09:29:46 +03:00
Formatting
This commit is contained in:
parent
6d99aa2f29
commit
ec074269f2
|
@ -8,8 +8,8 @@
|
|||
set -euo pipefail
|
||||
set -x
|
||||
|
||||
dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
prjdir="$(cd "${dir}/../.." && pwd)"
|
||||
dir="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
|
||||
prjdir="$( cd "${dir}/../.." && pwd )"
|
||||
|
||||
brew install gnu-sed postgresql@13
|
||||
|
||||
|
@ -17,13 +17,13 @@ brew install gnu-sed postgresql@13
|
|||
brew services start postgresql
|
||||
|
||||
for i in $(seq 10 -1 0); do
|
||||
eval pg_isready && break
|
||||
if [ $i == 0 ]; then
|
||||
eval pg_isready && break
|
||||
if [ $i == 0 ]; then
|
||||
echo "PostgreSQL service not ready, giving up"
|
||||
exit 1
|
||||
fi
|
||||
echo "PostgreSQL service not ready, waiting a bit, attempts left: $i"
|
||||
sleep 5
|
||||
fi
|
||||
echo "PostgreSQL service not ready, waiting a bit, attempts left: $i"
|
||||
sleep 5
|
||||
done
|
||||
|
||||
# Find psycopg version
|
||||
|
|
Loading…
Reference in New Issue
Block a user