Skip to content

Commit

Permalink
Pass --yes to add-apt-repository in ensure_ppa
Browse files Browse the repository at this point in the history
This prevents it from waiting for input and hanging.

Fixes #18
  • Loading branch information
dmac committed Aug 6, 2014
1 parent 3747e55 commit 95ddbc9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/terraform/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def ensure_ppa(ppa)
dep "ppa: #{location}" do
met? { !`apt-cache policy 2> /dev/null | grep ppa.launchpad.net/#{location}/`.empty? }
meet do
shell "sudo add-apt-repository #{ppa}"#, :silent => true
shell "sudo add-apt-repository --yes #{ppa}"#, :silent => true
shell "sudo apt-get update"#, :silent => true
end
end
Expand Down

0 comments on commit 95ddbc9

Please sign in to comment.