mac installer: if we've already removed quarantine bit, continue

This commit is contained in:
Will Greenberg
2025-03-28 12:22:32 -07:00
committed by Cooper Quintin
parent 7b897c335d
commit 91e825adff
+2 -1
View File
@@ -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