mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-25 22:16:25 +00:00
Now including grep -q
Signed-off-by: Alexandre Letourneau <letourneau.alexandre@gmail.com>
This commit is contained in:
parent
87a92d42ce
commit
85ccd3d569
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user