From 31b999ac2b342b275701c836f38e1613b36a71ce Mon Sep 17 00:00:00 2001 From: pika Date: Mon, 19 May 2025 10:45:12 +0200 Subject: [PATCH] wip --- hypr/hyprutils.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() {