push/local-exec: close temp script, fix inline [GH-5695]
This commit is contained in:
parent
3600698891
commit
33d4f4d2a9
|
@ -20,6 +20,7 @@ module VagrantPlugins
|
||||||
script = Tempfile.new(["vagrant-local-exec-script", ".sh"])
|
script = Tempfile.new(["vagrant-local-exec-script", ".sh"])
|
||||||
script.write(inline)
|
script.write(inline)
|
||||||
script.rewind
|
script.rewind
|
||||||
|
script.close
|
||||||
|
|
||||||
execute_script!(script.path)
|
execute_script!(script.path)
|
||||||
ensure
|
ensure
|
||||||
|
|
Loading…
Reference in New Issue