From: Alexandre Létourneau Date: Wed, 1 Apr 2015 22:22:50 +0000 (-0400) Subject: Now including grep -q X-Git-Tag: lxc-2.0.0.beta1~339^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F480%2Fhead;p=thirdparty%2Flxc.git Now including grep -q Signed-off-by: Alexandre Letourneau --- diff --git a/templates/lxc-centos.in b/templates/lxc-centos.in index 85d4f3768..b489e0e15 100644 --- a/templates/lxc-centos.in +++ b/templates/lxc-centos.in @@ -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"