From 037cc4491b96e33bdd1687b981d65849151527cb Mon Sep 17 00:00:00 2001 From: tkdb Date: Thu, 8 May 2014 23:54:45 +0200 Subject: [PATCH] Newline at the end of file It's good style and also #37 --- lib/vagrant-hostsupdater/HostsUpdater.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vagrant-hostsupdater/HostsUpdater.rb b/lib/vagrant-hostsupdater/HostsUpdater.rb index 45ec37a..83bcb80 100644 --- a/lib/vagrant-hostsupdater/HostsUpdater.rb +++ b/lib/vagrant-hostsupdater/HostsUpdater.rb @@ -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