From 91e825adff4f22882c0f5f6e47b9f07a8627d0e0 Mon Sep 17 00:00:00 2001 From: Will Greenberg Date: Fri, 28 Mar 2025 12:22:32 -0700 Subject: [PATCH] mac installer: if we've already removed quarantine bit, continue --- dist/install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dist/install.sh b/dist/install.sh index ff9347c..7a04482 100755 --- a/dist/install.sh +++ b/dist/install.sh @@ -109,7 +109,8 @@ elif [[ `uname -s` == "Darwin" ]]; then export SERIAL_PATH="./serial-macos-intel/serial" fi export PLATFORM_TOOLS="platform-tools-latest-darwin.zip" - xattr -d com.apple.quarantine "$SERIAL_PATH" + # if we've already deleted this attribute, xattr errors out + xattr -d com.apple.quarantine "$SERIAL_PATH" || echo else echo "This script only supports Linux or macOS" exit 1