1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 19:40:07 +00:00

fix: use xattr -c without -r flag for compatibility, close #509

This commit is contained in:
tw93
2026-02-28 09:49:16 +08:00
parent c7563351b9
commit e8e4f91bf0

View File

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