Browse Source

Update install_easy.sh

Теперь избегаем попадания бинарников в карантин перед самым первым взаимодействием с ними в блоке check_source().
pull/1477/head
NeteR_VezeR 2 months ago
committed by GitHub
parent
commit
830e42e05c
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 24
      install_easy.sh

24
install_easy.sh

@ -77,6 +77,9 @@ check_bins()
{ {
echo \* checking executables echo \* checking executables
if [ "$SYSTEM" = macos ]; then
find ./binaries/mac64 -type f -exec xattr -d com.apple.quarantine {} \;
fi
fix_perms_bin_test "$EXEDIR" fix_perms_bin_test "$EXEDIR"
local arch="$(get_bin_arch)" local arch="$(get_bin_arch)"
local make_target local make_target
@ -102,23 +105,10 @@ check_bins()
make_target=systemd make_target=systemd
;; ;;
esac esac
CFLAGS="${cf:+$cf }${CFLAGS}" make -C "$EXEDIR" $make_target || { CFLAGS="${cf:+$cf }${CFLAGS}" make -C "$EXEDIR" $make_target || {
if [ "$SYSTEM" = macos ]; then echo could not compile
echo "retrying compile" make -C "$EXEDIR" clean
echo "trying to remove quarantine attributes if exist" exitp 8
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
} }
echo compiled echo compiled
else else

Loading…
Cancel
Save