]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Now including grep -q
authorAlexandre Létourneau <letourneau.alexandre@gmail.com>
Wed, 1 Apr 2015 22:22:50 +0000 (18:22 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 14 Aug 2015 16:52:08 +0000 (12:52 -0400)
Signed-off-by: Alexandre Letourneau <letourneau.alexandre@gmail.com>
templates/lxc-centos.in

index c691bc9517da96bf39af81514719ee596562d890..3d15117f638b0fe5b31e37144efa348304d59df2 100644 (file)
@@ -403,7 +403,7 @@ download_centos()
 
     # download a mini centos into a cache
     echo "Downloading centos minimal ..."
-    if [ $(yum -h | grep 'releasever=RELEASEVER') ];then
+    if yum -h | grep -q 'releasever=RELEASEVER'; then
         YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck --releasever=$release"
     else
         YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck"