From c2d478dfcf9bc3f748aa6fda6fa8ea7dff371df5 Mon Sep 17 00:00:00 2001 From: Renan Castro Date: Fri, 5 Nov 2021 19:52:24 -0300 Subject: [PATCH] Fix unbound variable on dev-bundle script --- scripts/build-dev-bundle-common.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build-dev-bundle-common.sh b/scripts/build-dev-bundle-common.sh index f8175f17e7..d94f954c1e 100644 --- a/scripts/build-dev-bundle-common.sh +++ b/scripts/build-dev-bundle-common.sh @@ -12,6 +12,7 @@ NPM_VERSION=6.14.15 if [ "$UNAME" == "Linux" ] ; then + NODE_BUILD_NUMBER= if [ "$ARCH" != "i686" -a "$ARCH" != "x86_64" ] ; then echo "Unsupported architecture: $ARCH" echo "Meteor only supports i686 and x86_64 for now." @@ -25,6 +26,7 @@ if [ "$UNAME" == "Linux" ] ; then } elif [ "$UNAME" == "Darwin" ] ; then if [ "$ARCH" != "arm64" ] ; then + NODE_BUILD_NUMBER= SYSCTL_64BIT=$(sysctl -n hw.cpu64bit_capable 2>/dev/null || echo 0) if [ "$ARCH" == "i386" -a "1" != "$SYSCTL_64BIT" ] ; then # some older macos returns i386 but can run 64 bit binaries.