Permalink
Browse files

Cleanup skipped files warning

  • Loading branch information...
1 parent 4b0cd99 commit ff34e831574a57d52272dfb87be07caa3784940e @NickClark committed Jan 6, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 Rakefile
View
@@ -13,11 +13,16 @@ task :default do
["Rakefile", "README.markdown"].include?(file)
end
+ skip_warned = false
files.each do |file|
begin
FileUtils.ln_s(File.join(FileUtils.pwd, file), File.join(dest, ".#{file}"), :force => force)
rescue StandardError => e
- puts "Skipped #{file}. Run rake with FORCE=true to overwrite. #{e.inspect}"
+ unless skip_warned
+ puts "Run rake with FORCE=true to overwrite all linked files."
+ skip_warned = true
+ end
+ puts "Skipped #{file}."
end
end

0 comments on commit ff34e83

Please sign in to comment.