linux build script updated for other shells

fixed the way the CORES variable assignment  to be compliant with other shells other than bash
This commit is contained in:
VinegarLove
2021-11-28 23:38:54 +01:00
committed by GitHub
parent 89d5532b1b
commit 9cefa91f58

View File

@@ -19,6 +19,6 @@ else
fi
cd godot-cpp/;
CORES=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu)
CORES=$(grep -c \^processor /proc/cpuinfo 2>/dev/null || sysctl -n hw.ncpu)
scons platform=linux target=$1 generate_bindings=yes bits=64 -j$CORES;
cd ..