]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc/checkconfig: remove some unneeded `echo -n`
authorSimon Deziel <simon.deziel@canonical.com>
Fri, 6 Oct 2023 04:18:21 +0000 (00:18 -0400)
committerSimon Deziel <simon.deziel@canonical.com>
Fri, 6 Oct 2023 05:43:17 +0000 (01:43 -0400)
Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
src/lxc/cmd/lxc-checkconfig.in

index ee421fde02038bab26c49aca578f1ba38ffa41d3..98243d4f815d97b6f21d856110a6529d8366f476 100755 (executable)
@@ -120,12 +120,12 @@ fi
 
 if [ -z "${KVER_MAJOR}" ]; then
     echo "WARNING: Unable to detect version from configuration, assuming latest"
-    echo ""
+    echo
     KVER_MAJOR="100"
     KVER_MINOR="0"
 fi
 
-echo ""
+echo
 echo "--- Namespaces ---"
 echo -n "Namespaces: " && is_enabled CONFIG_NAMESPACES yes
 echo
@@ -190,15 +190,13 @@ if [ "${CGROUP_V2_MNTS}" != "/sys/fs/cgroup" ]; then
     CGROUP_SYSTEMD_MNTPT=$(echo "$CGROUP_V1_MNTS" | grep -F "/systemd")
     if [ -z "$CGROUP_SYSTEMD_MNTPT" ]; then
         echo -n "Cgroup v1 systemd controller: "
-        $SETCOLOR_FAILURE && echo -n "missing" && $SETCOLOR_NORMAL
-        echo
+        $SETCOLOR_FAILURE && echo "missing" && $SETCOLOR_NORMAL
     fi
 
     CGROUP_FREEZER_MNTPT=$(echo "$CGROUP_V1_MNTS" | grep -F "/freezer")
     if [ -z "$CGROUP_FREEZER_MNTPT" ]; then
         echo -n "Cgroup v1 freezer controller: "
-        $SETCOLOR_FAILURE && echo -n "missing" && $SETCOLOR_NORMAL
-        echo
+        $SETCOLOR_FAILURE && echo "missing" && $SETCOLOR_NORMAL
     fi
 
     CGROUP_MNT_PATH=$(echo "$CGROUP_V1_MNTS" | head -n 1)