1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 15:39:42 +00:00

fix(install): clear quarantine attribute after downloading binaries (#381)

This commit is contained in:
tw93
2026-01-28 19:07:08 +08:00
parent 6f0255c56e
commit 52ba523579

View File

@@ -506,6 +506,7 @@ download_binary() {
if curl -fsSL --connect-timeout 10 --max-time 60 -o "$target_path" "$url"; then if curl -fsSL --connect-timeout 10 --max-time 60 -o "$target_path" "$url"; then
if [[ -t 1 ]]; then stop_line_spinner; fi if [[ -t 1 ]]; then stop_line_spinner; fi
chmod +x "$target_path" chmod +x "$target_path"
xattr -cr "$target_path" 2> /dev/null || true
log_success "Downloaded ${binary_name} binary" log_success "Downloaded ${binary_name} binary"
else else
if [[ -t 1 ]]; then stop_line_spinner; fi if [[ -t 1 ]]; then stop_line_spinner; fi