mirror of
https://github.com/tw93/Mole.git
synced 2026-03-22 20:15:07 +00:00
fix: use xattr -c without -r flag for compatibility, close #509
This commit is contained in:
@@ -506,7 +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
|
xattr -c "$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
|
||||||
|
|||||||
Reference in New Issue
Block a user