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 committed Jan 29, 2024
2 parents e58581d + b2dcaba commit 860ed07
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 860ed07

Please sign in to comment.