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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user