Mercurial > ec-dotfiles
view bin/mgren @ 93:4f954c1e2fdc
Stop being pretentious and only return 0 or 1 in case of success or failure. Everything else is handled by exception handler.
author | Edho Prima Arief <edho@myconan.net> |
---|---|
date | Thu, 14 Jul 2011 00:39:09 +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