From 097ac6ac841a12d851184c7eb9f324cbf7c6515f Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sat, 29 Aug 2026 09:45:31 -0400 Subject: [PATCH] Update config -V fixes --- config | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config b/config index 7b1b9a9c..c35df3b8 100755 --- a/config +++ b/config @@ -2241,7 +2241,7 @@ elif [ "$1" = "-V" ]; then if [ -z "$param2" ] ; then - if [ "$param2" = "1" ] || [ "$param2" = "2" ] || [ "$param2" = "3" ] + if [ "$param2" = "1" ] || [ "$param2" = "2" ] || [ "$param2" = "3" ] ; then sudo sed -i 's/maxcpus=$CPUS/maxcpus=$param2/g' echo "Setting maxcpus="$param2 @@ -2250,6 +2250,8 @@ elif [ "$1" = "-V" ]; then echo "invalid maxcpus value" + fi + else echo "Current maxcpus="$CPUs @@ -2260,9 +2262,9 @@ elif [ "$1" = "-V" ]; then read NEWCPU - if [ $NEWCPU = "" ] + if [ $NEWCPU = "" ] ; then echo "No change to maxcpus" - if [ $NEWCPU = "0" ] + elif [ $NEWCPU = "0" ] sudo sed -i 's/maxcpus=$CPUS//g' echo "Removing maxcpus setting" elif [ $NEWCPU = "1" ] || [ $NEWCPU = "2" ] || [ $NEWCPU = "3" ] |