From ec074269f2d8132d766534ad226bb75df02b2245 Mon Sep 17 00:00:00 2001 From: Armen Zambrano G Date: Thu, 9 Sep 2021 09:25:38 -0400 Subject: [PATCH] Formatting --- .github/workflows/packages.yml | 4 ++-- scripts/build/build_macos.sh | 14 +++++++------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index cbba2288..bc27155b 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -148,7 +148,7 @@ jobs: - uses: actions/checkout@v2 - name: Install pre-requisites # This skips updating brew when installing a package - env: HOMEBREW_NO_AUTO_UPDATE=1 + env: HOMEBREW_NO_AUTO_UPDATE=1 run: | brew install postgresql@13 brew services start postgresql @@ -162,7 +162,7 @@ jobs: CIBW_REPAIR_WHEEL_COMMAND: delocate-listdeps {wheel} && delocate-wheel --require-archs {delocate_archs} -w repaired_wheels {wheel} # This allows substitution within setup.py PACKAGE_NAME: psycopg2-binary - + - run: | ls -l ls -l dist diff --git a/scripts/build/build_macos.sh b/scripts/build/build_macos.sh index b21aa8ad..16c6be9a 100755 --- a/scripts/build/build_macos.sh +++ b/scripts/build/build_macos.sh @@ -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