Skip to content

Commit

Permalink
Whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
henrik committed Mar 17, 2012
1 parent 5fd56ea commit 4449f63
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Rakefile
Expand Up @@ -4,7 +4,7 @@ def error(text) STDERR.puts "! #{text}" end
def info(text, prefix="*") STDOUT.puts "#{prefix} #{text}" end
def info_cmd(text) info(text, ">") end
def info_rm(text) info(text, "x") end

desc "Install dotfiles."
task :install do
Dir["*"].each do |file|
Expand All @@ -28,9 +28,9 @@ task :install do
next
end
end

contents = File.read(source) rescue ""

if contents.include?('<.replace ')

info "#{source} has <.replace> placeholders."
Expand All @@ -48,10 +48,10 @@ task :install do
info_cmd "wrote file #{destination}"

else

FileUtils.ln_s(source, destination)
info_cmd "ln -s #{source} #{destination}"

end

end
Expand Down

0 comments on commit 4449f63

Please sign in to comment.