Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add conditional in homebrew formula #119

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions netfetch.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
class Netfetch < Formula
desc "CLI tool to scan for network policies in Kubernetes clusters/namespaces and provide a score based on the amount of untargeted workloads"
homepage "https://github.com/deggja/netfetch"
url "https://github.com/deggja/netfetch/releases/download/3.2.6/netfetch_3.2.6_darwin_amd64.tar.gz"
sha256 "7a5e2e20904507020bcc4fc69706456b2f887c3ddf8980339d9b07deafd4feb9"

if OS.mac?
url "https://github.com/deggja/netfetch/releases/download/3.2.6/netfetch_3.2.6_darwin_amd64.tar.gz"
sha256 "7a5e2e20904507020bcc4fc69706456b2f887c3ddf8980339d9b07deafd4feb9"
elsif OS.linux?
url "https://github.com/deggja/netfetch/releases/download/3.2.6/netfetch_3.2.6_linux_amd64.tar.gz"
sha256 "208738f0e508458454cabe2c823d1e1bba2c389655ba5d2474cce523e0ca33bf"
end

def install
bin.install "netfetch"
Expand All @@ -11,4 +17,4 @@ def install
test do
system "#{bin}/netfetch", "--version"
end
end
end