Sha256: c7b34d9584c84a7ba19c45c8b90983b1accace472d53ffaae1c1490fe985515a
Contents?: true
Size: 472 Bytes
Versions: 1
Compression:
Stored size: 472 Bytes
Contents
#!/usr/bin/env ruby require 'very_safe_rm' file, args = VerySafeRm::Arg.parse ARGV if args.include? '--version' print 'very_safe_rm ' puts VerySafeRm::VERSION puts system 'rm --version' exit end if file.empty? system 'rm' exit 1 end if args.include?('-r') || args.include?('-R') || args.include?('--recursive') STDERR.print 'Did you really want to delete directory? [y/N] ' exit unless STDIN.gets.chomp =~ /^y(es)?$/i end VerySafeRm.run file, args
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
very_safe_rm-0.2.3 | exe/very_safe_rm |