From 830e42e05c893e89406d087a434b964ef638c9f1 Mon Sep 17 00:00:00 2001 From: NeteR_VezeR <139502574+0netervezer0@users.noreply.github.com> Date: Sun, 1 Jun 2025 12:35:54 +0300 Subject: [PATCH] Update install_easy.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Теперь избегаем попадания бинарников в карантин перед самым первым взаимодействием с ними в блоке check_source(). --- install_easy.sh | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/install_easy.sh b/install_easy.sh index 7b8ea61..038c556 100755 --- a/install_easy.sh +++ b/install_easy.sh @@ -77,6 +77,9 @@ check_bins() { echo \* checking executables + if [ "$SYSTEM" = macos ]; then + find ./binaries/mac64 -type f -exec xattr -d com.apple.quarantine {} \; + fi fix_perms_bin_test "$EXEDIR" local arch="$(get_bin_arch)" local make_target @@ -102,23 +105,10 @@ check_bins() make_target=systemd ;; esac - CFLAGS="${cf:+$cf }${CFLAGS}" make -C "$EXEDIR" $make_target || { - if [ "$SYSTEM" = macos ]; then - echo "retrying compile" - echo "trying to remove quarantine attributes if exist" - xattr -d com.apple.quarantine ./binaries/mac64/ip2net 2>/dev/null - xattr -d com.apple.quarantine ./binaries/mac64/mdig 2>/dev/null - xattr -d com.apple.quarantine ./binaries/mac64/tpws 2>/dev/null - CFLAGS="${cf:+$cf }${CFLAGS}" make -C "$EXEDIR" $make_target || { - echo could not compile - make -C "$EXEDIR" clean - exitp 8 - } - else - echo could not compile - make -C "$EXEDIR" clean - exitp 8 - fi + CFLAGS="${cf:+$cf }${CFLAGS}" make -C "$EXEDIR" $make_target || { + echo could not compile + make -C "$EXEDIR" clean + exitp 8 } echo compiled else