Skip to content

Instantly share code, notes, and snippets.

@iwadon
Created April 13, 2011 14:22
Show Gist options
  • Select an option

  • Save iwadon/917629 to your computer and use it in GitHub Desktop.

Select an option

Save iwadon/917629 to your computer and use it in GitHub Desktop.
FileUtils.touch :nocreate => true, :verbose => true でのメッセージを修正。
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