Mercurial > ec-dotfiles
view bin/mgren @ 365:3e62b13e1f48
Better test for rm aliasing
Check for GNU rm availability and whether the rm (GNU or not) has -I parameter.
author | Edho Arief <edho@myconan.net> |
---|---|
date | Mon, 04 Jun 2012 15:41:48 +0700 |
parents | 94ee419ad047 |
children |
line wrap: on
line source
#!/usr/bin/env ruby TITLE_MAPS={ "otaku no musume-san" => 1 } TITLE_REAL={ 1 => "Otaku no Musume-san" } def get_title end ARGV.each do |file| next unless File.file?(file) and File.readable?(file) end