From ed29449acbfd0979b85691d9d8618ae690b42eac Mon Sep 17 00:00:00 2001 From: Kay0u Date: Sat, 15 Aug 2020 11:12:48 +0200 Subject: [PATCH] fix wget in wait_container --- utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.sh b/utils.sh index 300776d..8d583cc 100755 --- a/utils.sh +++ b/utils.sh @@ -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