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" ] |