about summary refs log tree commit diff
path: root/unicorn_mode
diff options
context:
space:
mode:
Diffstat (limited to 'unicorn_mode')
-rwxr-xr-xunicorn_mode/build_unicorn_support.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/unicorn_mode/build_unicorn_support.sh b/unicorn_mode/build_unicorn_support.sh
index 1c176bca..e46cf54f 100755
--- a/unicorn_mode/build_unicorn_support.sh
+++ b/unicorn_mode/build_unicorn_support.sh
@@ -73,19 +73,19 @@ if [ "$PLT" = "Linux" ]; then
 fi
 
 if [ "$PLT" = "Darwin" ]; then
-  CORES=`sysctl hw.ncpu | cut -d' ' -f2`
+  CORES=`sysctl -n hw.ncpu`
   TARCMD=tar
 fi
 
 if [ "$PLT" = "FreeBSD" ]; then
   MAKECMD=gmake
-  CORES=`sysctl hw.ncpu | cut -d' ' -f2`
+  CORES=`sysctl -n hw.ncpu`
   TARCMD=gtar
 fi
 
 if [ "$PLT" = "NetBSD" ] || [ "$PLT" = "OpenBSD" ]; then
   MAKECMD=gmake
-  CORES=`sysctl hw.ncpu | cut -d'=' -f2`
+  CORES=`sysctl -n hw.ncpu`
   TARCMD=gtar
 fi