]> git.proxmox.com Git - mirror_lxc.git/commitdiff
avoid zgrep -q as it's failing on some distros
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 30 Aug 2013 16:08:26 +0000 (12:08 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 30 Aug 2013 16:08:26 +0000 (12:08 -0400)
Reported-by: Filirom1
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxc-checkconfig.in

index 472755f6f4dc27b57c3ea20d88a5c6d143463f1b..7927aad3a4d0e04fac0232dccc09f12ad7a8eabc 100644 (file)
@@ -10,7 +10,7 @@ SETCOLOR_WARNING="printf \\033[1;33m"
 SETCOLOR_NORMAL="printf \\033[0;39m"
 
 is_set() {
-    $GREP -q "$1=[y|m]" $CONFIG
+    $GREP "$1=[y|m]" $CONFIG > /dev/null
     return $?
 }