Skip to content

Commit

Permalink
Newline at the end of file
Browse files Browse the repository at this point in the history
It's good style and also agiledivider#37
  • Loading branch information
tkdb committed May 8, 2014
1 parent bb1a495 commit 037cc44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vagrant-hostsupdater/HostsUpdater.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def getHostEntries(ip, hostnames, name, uuid = self.uuid)

def addToHosts(entries)
return if entries.length == 0
content = entries.join("\n").strip
content = entries.join("\n").strip.concat("\n")
if !File.writable?(@@hosts_path)
sudo(%Q(sh -c 'echo "#{content}" >> #@@hosts_path'))
else
Expand Down

0 comments on commit 037cc44

Please sign in to comment.