From 502456edaee79e1e11b1e0094791ae3f64eda3f0 Mon Sep 17 00:00:00 2001 From: Ali <> Date: Sat, 30 Nov 2019 16:08:30 +0400 Subject: [PATCH] Ignore errors while VM is launching [skip ci] --- buildbox/build-telegram.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildbox/build-telegram.sh b/buildbox/build-telegram.sh index c58df8318d..8a98f552d6 100644 --- a/buildbox/build-telegram.sh +++ b/buildbox/build-telegram.sh @@ -163,7 +163,7 @@ elif [ "$BUILD_MACHINE" == "macOS" ]; then echo "Getting VM IP" while [ 1 ]; do - TEST_IP=$(prlctl exec "$VM_NAME" "ifconfig | grep inet | grep broadcast | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' | head -1 | tr '\n' '\0'" || echo "") + TEST_IP=$(prlctl exec "$VM_NAME" "ifconfig | grep inet | grep broadcast | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' | head -1 | tr '\n' '\0'" 2>/dev/null || echo "") if [ ! -z "$TEST_IP" ]; then RESPONSE=$(ssh -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null telegram@"$TEST_IP" -o ServerAliveInterval=60 -t "echo -n 1") if [ "$RESPONSE" == "1" ]; then