From c23aecbfbe2fb876f20c566a12895e4a3f5bd1e1 Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Mon, 18 Nov 2013 21:54:21 +0100 Subject: safe-rm 0.10 Closes #24453. Signed-off-by: Adam Vandenberg --- Library/Formula/safe-rm.rb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Library/Formula/safe-rm.rb (limited to 'Library/Formula') diff --git a/Library/Formula/safe-rm.rb b/Library/Formula/safe-rm.rb new file mode 100644 index 000000000..3e11df3ec --- /dev/null +++ b/Library/Formula/safe-rm.rb @@ -0,0 +1,18 @@ +require 'formula' + +class SafeRm < Formula + homepage 'http://www.safe-rm.org.nz/' + url 'https://launchpad.net/safe-rm/trunk/0.10/+download/safe-rm-0.10.tar.gz' + sha1 '6b829ae68e1fa3c8016e15ab37fcc08caef7712f' + + def install + bin.install 'safe-rm' + end + + test do + file = "a-file" + touch file + system "#{bin}/safe-rm", file + !File.exists? file + end +end -- cgit v1.2.3