diff --git a/hypr/hyprutils.sh b/hypr/hyprutils.sh index ae070a3..aa1427b 100644 --- a/hypr/hyprutils.sh +++ b/hypr/hyprutils.sh @@ -5,6 +5,8 @@ command_exists() { command -v "$@" >/dev/null 2>&1 } +cores="$(nproc 2>/dev/null || getconf NPROCESSORS_CONF)" + # ─< package variable >─────────────────────────────────────────────────────────────────── unset PACKAGE @@ -97,7 +99,7 @@ getDependencies() { build() { echo_pkg build run cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_PREFIX:PATH=/usr -S . -B ./build - run cmake --build ./build --config Release --target all -j$(nproc 2>/dev/null || getconf NPROCESSORS_CONF) + run cmake --build ./build --config Release --target all -j"${cores}" } cloneAndInstall() {