[lxc-devel] [lxc/master] Fix SETCOLOR_FAILURE evaluation

p-l- on Github lxc-bot at linuxcontainers.org
Sun Dec 3 10:30:47 UTC 2017


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 434 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20171203/237ca5d2/attachment.bin>
-------------- next part --------------
From 7b8ce4251b4bd9249cc982840b6f28545a6dbdc4 Mon Sep 17 00:00:00 2001
From: Pierre LALET <pierre.lalet at cea.fr>
Date: Sun, 3 Dec 2017 11:28:07 +0100
Subject: [PATCH] Fix SETCOLOR_FAILURE evaluation

---
 src/lxc/tools/lxc-checkconfig.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lxc/tools/lxc-checkconfig.in b/src/lxc/tools/lxc-checkconfig.in
index 61681ee12..d9c67492f 100644
--- a/src/lxc/tools/lxc-checkconfig.in
+++ b/src/lxc/tools/lxc-checkconfig.in
@@ -153,14 +153,14 @@ echo
 CGROUP_SYSTEMD_MNTPT=`echo "$CGROUP_V1_MNTS" | grep "/systemd"`
 if [ -z "$CGROUP_SYSTEMD_MNTPT" ]; then
     echo -n "Cgroup v1 systemd controller: "
-    "$SETCOLOR_FAILURE" && echo -n "missing" && $SETCOLOR_NORMAL
+    $SETCOLOR_FAILURE && echo -n "missing" && $SETCOLOR_NORMAL
     echo
 fi
 
 CGROUP_FREEZER_MNTPT=`echo "$CGROUP_V1_MNTS" | grep "/freezer"`
 if [ -z "$CGROUP_FREEZER_MNTPT" ]; then
     echo -n "Cgroup v1 freezer controller: "
-    "$SETCOLOR_FAILURE" && echo -n "missing" && $SETCOLOR_NORMAL
+    $SETCOLOR_FAILURE && echo -n "missing" && $SETCOLOR_NORMAL
     echo
 fi
 


More information about the lxc-devel mailing list