]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Fix lxc-checkconfig
authorDaniel Lezcano <daniel.lezcano@free.fr>
Wed, 16 Jun 2010 07:19:15 +0000 (09:19 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Wed, 16 Jun 2010 07:19:15 +0000 (09:19 +0200)
Fix bad comparison.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/lxc-checkconfig.in

index aa815bf9f06f747ec498e0b84cc87d03d22922e8..7097fef4c46b524832ad84f3a35f523634b7ee02 100755 (executable)
@@ -11,8 +11,6 @@ SETCOLOR_NORMAL="echo -en \\033[0;39m"
 
 is_set() {
     $GREP -q "$1=[y|m]" $CONFIG
-    RES=$?
-
     return $?
 }
 
@@ -22,7 +20,7 @@ is_enabled() {
     is_set $1
     RES=$?
 
-    if [ $RES = 0 ]; then
+    if [ $RES -eq 0 ]; then
        $SETCOLOR_SUCCESS && echo -e "enabled" && $SETCOLOR_NORMAL
     else
        if [ ! -z "$mandatory" -a "$mandatory" = yes ]; then