Skip to content

Commit 40a8a52

Browse files
alebcaychenrui333
authored andcommitted
killswitch: use std_go_args
1 parent b5eb60f commit 40a8a52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Formula/killswitch.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class Killswitch < Formula
2121
depends_on :macos
2222

2323
def install
24-
system "go", "build", "-mod=readonly", "-ldflags", "-s -w -X main.version=#{version}",
25-
"-o", "#{bin}/killswitch", "cmd/killswitch/main.go"
24+
system "go", "build", "-mod=readonly", *std_go_args(ldflags: "-s -w -X main.version=#{version}"),
25+
"cmd/killswitch/main.go"
2626
end
2727

2828
test do

0 commit comments

Comments
 (0)