From: Alexandre Létourneau Date: Wed, 1 Apr 2015 22:22:50 +0000 (-0400) Subject: Now including grep -q X-Git-Tag: lxc-1.0.8~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee84093f9a7b59fe017184aa58b6c745e96b9548;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 c691bc951..3d15117f6 100644 --- a/templates/lxc-centos.in +++ b/templates/lxc-centos.in @@ -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"