Created
April 13, 2011 14:22
-
-
Save iwadon/917629 to your computer and use it in GitHub Desktop.
FileUtils.touch :nocreate => true, :verbose => true でのメッセージを修正。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/lib/fileutils.rb b/lib/fileutils.rb | |
| index f2a6197..94af69a 100644 | |
| --- a/lib/fileutils.rb | |
| +++ b/lib/fileutils.rb | |
| @@ -1036,7 +1036,7 @@ module FileUtils | |
| created = nocreate = options[:nocreate] | |
| t = options[:mtime] | |
| if options[:verbose] | |
| - fu_output_message "touch #{nocreate ? ' -c' : ''}#{t ? t.strftime(' -t %Y%m%d%H%M.%S') : ''}#{list.join ' '}" | |
| + fu_output_message "touch #{nocreate ? '-c ' : ''}#{t ? t.strftime(' -t %Y%m%d%H%M.%S') : ''}#{list.join ' '}" | |
| end | |
| return if options[:noop] | |
| list.each do |path| |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment