jdupes 1.9 (new formula)
Closes #21973. Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
parent
079c917f7a
commit
e51ce90a19
1 changed files with 18 additions and 0 deletions
18
Formula/jdupes.rb
Normal file
18
Formula/jdupes.rb
Normal file
|
@ -0,0 +1,18 @@
|
|||
class Jdupes < Formula
|
||||
desc "Duplicate file finder and an enhanced fork of 'fdupes'"
|
||||
homepage "https://github.com/jbruchon/jdupes"
|
||||
url "https://github.com/jbruchon/jdupes/archive/v1.9.tar.gz"
|
||||
sha256 "7f2505571c9fc8f76609b918106785f61e4a85af184309f738d7d847f1c2a1cf"
|
||||
|
||||
def install
|
||||
system "make", "install", "PREFIX=#{prefix}"
|
||||
end
|
||||
|
||||
test do
|
||||
touch "a"
|
||||
touch "b"
|
||||
(testpath/"c").write("unique file")
|
||||
dupes = shell_output("#{bin}/jdupes --zeromatch .").strip.split("\n").sort
|
||||
assert_equal ["./a", "./b"], dupes
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue