mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-24 13:43:31 +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
|
||||
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"
|
||||
|
Loading…
Reference in New Issue
Block a user