Commit 3f9cf2ad by Daniel Lezcano Committed by Daniel Lezcano

Fix lxc-checkconfig

Fix bad comparison. Signed-off-by: 's avatarDaniel Lezcano <dlezcano@fr.ibm.com>
parent b0badabd
...@@ -11,8 +11,6 @@ SETCOLOR_NORMAL="echo -en \\033[0;39m" ...@@ -11,8 +11,6 @@ SETCOLOR_NORMAL="echo -en \\033[0;39m"
is_set() { is_set() {
$GREP -q "$1=[y|m]" $CONFIG $GREP -q "$1=[y|m]" $CONFIG
RES=$?
return $? return $?
} }
...@@ -22,7 +20,7 @@ is_enabled() { ...@@ -22,7 +20,7 @@ is_enabled() {
is_set $1 is_set $1
RES=$? RES=$?
if [ $RES = 0 ]; then if [ $RES -eq 0 ]; then
$SETCOLOR_SUCCESS && echo -e "enabled" && $SETCOLOR_NORMAL $SETCOLOR_SUCCESS && echo -e "enabled" && $SETCOLOR_NORMAL
else else
if [ ! -z "$mandatory" -a "$mandatory" = yes ]; then if [ ! -z "$mandatory" -a "$mandatory" = yes ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment