From e2e51d7a39847d2c3dc6a3149a5e201d57487a37 Mon Sep 17 00:00:00 2001 From: Daniele Varrazzo Date: Sun, 5 Jan 2025 21:51:57 +0100 Subject: [PATCH] fix(macos): don't crash on undefined variable --- scripts/build/build_libpq.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build/build_libpq.sh b/scripts/build/build_libpq.sh index 0baf37bed..6907a8455 100755 --- a/scripts/build/build_libpq.sh +++ b/scripts/build/build_libpq.sh @@ -62,7 +62,7 @@ case "$ID" in # openssl no matter what so remove it. Since homebrew's curl depends on # it, force use of system curl. brew uninstall --force --ignore-dependencies openssl gettext curl - if [ -z "$MACOSX_ARCHITECTURE" ]; then + if [ -z "${MACOSX_ARCHITECTURE:-}" ]; then MACOSX_ARCHITECTURE="$(uname -m)" fi # Set the deployment target to be <= to that of the oldest supported Python version.