Now including grep -q

Signed-off-by: Alexandre Letourneau <letourneau.alexandre@gmail.com>
This commit is contained in:
Alexandre Létourneau 2015-04-01 18:22:50 -04:00
parent 87a92d42ce
commit 85ccd3d569

View 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"