homebrew-core/Formula/safe-rm.rb

19 lines
381 B
Ruby
Raw Normal View History

require 'formula'
class SafeRm < Formula
homepage 'https://launchpad.net/safe-rm'
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
2013-12-09 19:44:45 +00:00
assert !File.exist?(file)
end
end