From 33d4f4d2a9bf815bcdafcfa97aa354adee15c249 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 6 Jul 2015 23:42:07 -0600 Subject: [PATCH] push/local-exec: close temp script, fix inline [GH-5695] --- plugins/pushes/local-exec/push.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/pushes/local-exec/push.rb b/plugins/pushes/local-exec/push.rb index bad308f3b..718b1ab04 100644 --- a/plugins/pushes/local-exec/push.rb +++ b/plugins/pushes/local-exec/push.rb @@ -20,6 +20,7 @@ module VagrantPlugins script = Tempfile.new(["vagrant-local-exec-script", ".sh"]) script.write(inline) script.rewind + script.close execute_script!(script.path) ensure