From 6b185e5e2ad3c229c70f912899b4d3e2dea75ab6 Mon Sep 17 00:00:00 2001 From: just-some-tall-bloke Date: Mon, 26 Oct 2020 11:51:08 +0100 Subject: [PATCH] Update Install or Defer.sh Allows connectivity check to pass on corporate networks where ping is blocked --- payload/Library/Scripts/Install or Defer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payload/Library/Scripts/Install or Defer.sh b/payload/Library/Scripts/Install or Defer.sh index 3ba5326..829b32f 100755 --- a/payload/Library/Scripts/Install or Defer.sh +++ b/payload/Library/Scripts/Install or Defer.sh @@ -355,7 +355,7 @@ else fi # We need to be connected to the internet in order to download updates. -if /sbin/ping -q -c 1 208.67.222.222; then +if nc -zw1 google.com 443; then # Check if a custom CatalogURL is set and if it is available # (deprecated in macOS 11+). if [[ "$OS_MAJOR" -eq 10 && "$OS_MINOR" -lt 16 ]]; then