diff --git a/hyprlock.sh b/hyprlock.sh index e1e778d..bfdf422 100644 --- a/hyprlock.sh +++ b/hyprlock.sh @@ -154,9 +154,10 @@ cloneAndBuildUtils() { } build() { + local cores="$(nproc 2>/dev/null || getconf _NPROCESSORS_CONF)" echo_info "Building hyprlock" run cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -S . -B ./build - run cmake --build ./build --config Release --target hyprlock -j$(nproc 2>/dev/null || getconf _NPROCESSORS_CONF) + run cmake --build ./build --config Release --target hyprlock -j"$cores" } cloneAndBuildLock() {