From 2bb7fbb4199f70d0b1a96aba2a7a48038dd1a920 Mon Sep 17 00:00:00 2001 From: Graham Clark Date: Mon, 11 Nov 2019 00:52:21 -0500 Subject: [PATCH] termshark 2.0.2 Fix the broken version test - I removed the yes|no choices. I also restored the bottle section, which is managed by the test bot. Closes #46616. Signed-off-by: Rui Chen --- Formula/termshark.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Formula/termshark.rb b/Formula/termshark.rb index 13cb1f5966..5fb8962f77 100644 --- a/Formula/termshark.rb +++ b/Formula/termshark.rb @@ -1,8 +1,8 @@ class Termshark < Formula desc "Terminal UI for tshark, inspired by Wireshark" homepage "https://termshark.io" - url "https://github.com/gcla/termshark/archive/v1.0.0.tar.gz" - sha256 "669bba0e8dd7df54ade6321a5c7d2ec20563ffd777f7b3b0394a11f88da64698" + url "https://github.com/gcla/termshark/archive/v2.0.2.tar.gz" + sha256 "36e45dfeb97f89379bda5be6bfe69c46e5c4211674120977e7b0033f5d90321a" bottle do cellar :any_skip_relocation @@ -24,14 +24,13 @@ class Termshark < Formula cd "termshark" do system "go", "build", "-o", bin/"termshark", - "-ldflags", "-X github.com/gcla/termshark.Version=#{version}", "cmd/termshark/termshark.go" end end test do - assert_match "termshark v1.0.0", - shell_output("#{bin}/termshark -v --pass-thru=no") + assert_match "termshark v2.0.2", + shell_output("#{bin}/termshark -v --pass-thru=false") # Build a test pcap programmatically. Termshark will read this # from a temp file.