safe-rm 0.10
Closes Homebrew/homebrew#24453. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
c1f75d6fd3
commit
e2e07b6d91
1 changed files with 18 additions and 0 deletions
18
Formula/safe-rm.rb
Normal file
18
Formula/safe-rm.rb
Normal file
|
@ -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
|
Loading…
Reference in a new issue