Skip to content

Commit e2e51d7

Browse files
committed
fix(macos): don't crash on undefined variable
1 parent cee23d8 commit e2e51d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/build/build_libpq.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ case "$ID" in
6262
# openssl no matter what so remove it. Since homebrew's curl depends on
6363
# it, force use of system curl.
6464
brew uninstall --force --ignore-dependencies openssl gettext curl
65-
if [ -z "$MACOSX_ARCHITECTURE" ]; then
65+
if [ -z "${MACOSX_ARCHITECTURE:-}" ]; then
6666
MACOSX_ARCHITECTURE="$(uname -m)"
6767
fi
6868
# Set the deployment target to be <= to that of the oldest supported Python version.

0 commit comments

Comments
 (0)