fix wget in wait_container

This commit is contained in:
Kay0u 2020-08-15 11:12:48 +02:00
parent eee1f84f89
commit ed29449acb
No known key found for this signature in database
GPG key ID: AE1DCADB6415A156

View file

@ -60,7 +60,7 @@ wait_container()
# Wait for container to access the internet
for j in $(seq 1 10); do
if lxc exec "$1" -- /bin/bash -c "which wget > /dev/null 2>&1 && wget -q --spider http://github.com"; then
if lxc exec "$1" -- /bin/bash -c "! which wget > /dev/null 2>&1 || wget -q --spider http://github.com"; then
break
fi