Commit bda67c31 by Alexandre Létourneau Committed by Stéphane Graber

Now including grep -q

parent b3eeaf70
...@@ -413,7 +413,7 @@ download_centos() ...@@ -413,7 +413,7 @@ download_centos()
# download a mini centos into a cache # download a mini centos into a cache
echo "Downloading centos minimal ..." 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" YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck --releasever=$release"
else else
YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck" YUM="yum --installroot $INSTALL_ROOT -y --nogpgcheck"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment