run.sh: only use -j$(nproc) on linux

This commit is contained in:
Linus Dierheimer
2022-09-19 19:19:09 +02:00
parent 381cba2612
commit 61e71ed658
+8 -1
View File
@@ -7,5 +7,12 @@ set -e
mkdir -p build/
cd build/
cmake ..
cmake --build . --target fastfetch -j$(nproc)
if [ "$OSTYPE" == "linux-gnu" ]; then
cmake_build_extra_args="-j$(nproc)"
else
cmake_build_extra_args=""
fi
cmake --build . --target fastfetch ${cmake_build_extra_args}
./fastfetch "$@"