From ee84093f9a7b59fe017184aa58b6c745e96b9548 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexandre=20L=C3=A9tourneau?= Date: Wed, 1 Apr 2015 18:22:50 -0400 Subject: [PATCH] Now including grep -q Signed-off-by: Alexandre Letourneau --- templates/lxc-centos.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" -- 2.47.2