From 9fe26c92a5b2ef5cb71c91086980b17786aab0df Mon Sep 17 00:00:00 2001 From: bol-van Date: Sun, 1 Jun 2025 15:30:51 +0300 Subject: [PATCH] install_bin: remove quarantine xattr on macos --- install_bin.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/install_bin.sh b/install_bin.sh index 067bd50..2414531 100755 --- a/install_bin.sh +++ b/install_bin.sh @@ -64,6 +64,12 @@ select_test_method() } +disable_antivirus() +{ + # $1 - dir + [ "$UNAME" = Darwin ] && find "$dir" -maxdepth 1 -type f -perm +111 -exec xattr -d com.apple.quarantine {} \; 2>/dev/null +} + check_dir() { local dir="$BINDIR/$1" @@ -71,6 +77,7 @@ check_dir() local out if [ -f "$exe" ]; then if [ -x "$exe" ]; then + disable_antivirus "$dir" case $TEST in bash) out=$(echo 0.0.0.0 | bash -c "\"$exe"\" 2>/dev/null)