Skip to content

Commit f28097d

Browse files
committed
add require, add naive post-install test
1 parent 2508eb8 commit f28097d

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

formula.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
1+
require "formula"
2+
13
class Touchp < Formula
2-
desc "basically `mkdir -p` + `touch`, written in Go"
3-
homepage "https://github.com/defeated/touchp/"
44
url "https://github.com/defeated/touchp/releases/download/0.0.1/touchp-0.1.1-darwin-amd64.zip"
5+
homepage "https://github.com/defeated/touchp/"
6+
desc "basically `mkdir -p` + `touch`, written in Go"
57
sha256 "f0275b34d87c624541dd04824815290666bc6de5055632d32d4d154507e27ed0"
68

79
def install
810
bin.install "touchp"
911
end
12+
13+
test do
14+
system "touchp"
15+
end
1016
end

0 commit comments

Comments
 (0)