push/local-exec: close temp script, fix inline [GH-5695]

This commit is contained in:
Mitchell Hashimoto 2015-07-06 23:42:07 -06:00
parent 3600698891
commit 33d4f4d2a9
1 changed files with 1 additions and 0 deletions

View File

@ -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