mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-12 10:22:12 +02:00
run.sh: only use -j$(nproc) on linux
This commit is contained in:
@@ -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 "$@"
|
||||
|
||||
Reference in New Issue
Block a user