Skip to content

Commit

Permalink
Merge pull request #119 from deggja/fix/partial-fix-105
Browse files Browse the repository at this point in the history
fix: add conditional in homebrew formula
  • Loading branch information
deggja authored Jan 29, 2024
2 parents bd5e8c1 + fd80689 commit b585c5b
Showing 1 changed file with 9 additions and 3 deletions.
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

0 comments on commit b585c5b

Please sign in to comment.