Skip to content

Commit

Permalink
Handle potential xattr failure gracefully in build script
Browse files Browse the repository at this point in the history
  • Loading branch information
RamboRogers committed Jan 2, 2025
1 parent a1436f9 commit 8347c7d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ class Netventory < Formula
end
# Remove quarantine attribute
system "xattr", "-d", "com.apple.quarantine", "#{bin}/netventory"
rescue
# Ignore if xattr fails (in case attribute doesn't exist)
nil
end
test do
Expand Down

0 comments on commit 8347c7d

Please sign in to comment.