]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Now including grep -q 480/head
authorAlexandre Létourneau <letourneau.alexandre@gmail.com>
Wed, 1 Apr 2015 22:22:50 +0000 (18:22 -0400)
committerAlexandre Létourneau <letourneau.alexandre@gmail.com>
Wed, 1 Apr 2015 22:22:54 +0000 (18:22 -0400)
Signed-off-by: Alexandre Letourneau <letourneau.alexandre@gmail.com>
templates/lxc-centos.in

index 85d4f3768057d5344cc284b50231fbe7260a6dfd..b489e0e1560b1f0f53cb1c48ff704816bb86b034 100644 (file)
@@ -413,7 +413,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"