Skip to content

Commit

Permalink
push/local-exec: close temp script, fix inline [hashicorpGH-5695]
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Jul 7, 2015
1 parent 3600698 commit 33d4f4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/pushes/local-exec/push.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def execute_inline!(inline)
script = Tempfile.new(["vagrant-local-exec-script", ".sh"])
script.write(inline)
script.rewind
script.close

execute_script!(script.path)
ensure
Expand Down

0 comments on commit 33d4f4d

Please sign in to comment.