summaryrefslogtreecommitdiffstats
path: root/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'packaging')
-rwxr-xr-xpackaging/macosx/osx-app.sh3
-rwxr-xr-xpackaging/macosx/osx-build.sh3
2 files changed, 2 insertions, 4 deletions
diff --git a/packaging/macosx/osx-app.sh b/packaging/macosx/osx-app.sh
index 8318f9761..9a3478e67 100755
--- a/packaging/macosx/osx-app.sh
+++ b/packaging/macosx/osx-app.sh
@@ -282,8 +282,7 @@ ARCH="$(uname -a | awk '{print $NF;}')"
# guess default build_arch (MacPorts)
if [ "$OSXMINORNO" -ge "6" ]; then
- _cpu_bits="$(sysctl hw.cpu64bit_capable > /dev/null 2>&1)"
- if [ $? -eq 0 ]; then
+ if [ "$(sysctl hw.cpu64bit_capable 2>/dev/null | awk '{print $NF;}')" = "1" ]; then
_build_arch="x86_64"
else
_build_arch="i386"
diff --git a/packaging/macosx/osx-build.sh b/packaging/macosx/osx-build.sh
index 84a0d0ba9..ececf11cb 100755
--- a/packaging/macosx/osx-build.sh
+++ b/packaging/macosx/osx-build.sh
@@ -174,8 +174,7 @@ ARCH="$(uname -a | awk '{print $NF;}')"
# guess default build_arch (MacPorts)
if [ "$OSXMINORNO" -ge "6" ]; then
- _cpu_bits="$(sysctl hw.cpu64bit_capable > /dev/null 2>&1)"
- if [ $? -eq 0 ]; then
+ if [ "$(sysctl hw.cpu64bit_capable 2>/dev/null | awk '{print $NF;}')" = "1" ]; then
_build_arch="x86_64"
else
_build_arch="i386"