From 684a49af14365265d11b3214314e2bfb760e26eb Mon Sep 17 00:00:00 2001 From: Lukas Greve Date: Sun, 15 Jun 2025 14:30:00 +0200 Subject: [PATCH] no need to echo when it succeeds --- scripts/core-count.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scripts/core-count.sh b/scripts/core-count.sh index 1a0c8ee..79cf1ab 100755 --- a/scripts/core-count.sh +++ b/scripts/core-count.sh @@ -4,9 +4,7 @@ core_count=$(nproc --all) # Check if nproc --all returns a numerical value greater than 2 -if (( core_count > 2 )); then - echo "System has more than 2 core (nproc --all: $core_count)." -else +if (( core_count < 2 )); then echo "Warning: System has only $core_count core)." echo "The script requires at least four cores" exit 1 # Exit with an error code to indicate the condition is not met