Skip to content

Commit 5d8d99d

Browse files
authored
Merge pull request #85 from ansonhoyt/add-head-support
Fixes brew audit issues and adds HEAD support for formula
2 parents e538c3c + e6fd4a1 commit 5d8d99d

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

Formula/try.rb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@ class Try < Formula
33
homepage "https://github.com/tobi/try"
44
url "https://github.com/tobi/try/archive/refs/tags/v1.0.0.tar.gz"
55
sha256 "267f2b63561de396a8938c6f41e68e8cecc635d05c582a1f866c0bbf37676af2"
6-
version "1.0.0"
6+
7+
head "https://github.com/tobi/try.git", branch: "main"
78

89
depends_on "ruby"
910

1011
def install
1112
bin.install "try.rb" => "try"
13+
if build.head?
14+
(bin/"lib").install "lib/tui.rb"
15+
(bin/"lib").install "lib/fuzzy.rb"
16+
end
1217
end
1318

1419
def caveats
@@ -28,4 +33,4 @@ def caveats
2833
test do
2934
system "#{bin}/try", "--help"
3035
end
31-
end
36+
end

0 commit comments

Comments
 (0)