Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit

Permalink
feat(definition): Accept license when promped behind the scene, fixes #8
Browse files Browse the repository at this point in the history
  • Loading branch information
blackjid committed Jun 24, 2014
1 parent e3d4585 commit 388ac30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifests/definition.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
} else {
exec { "android-update-${filter}":
command => "${android::config::sdk_dir}/bin/android update sdk --all --no-ui --filter ${filter}",
command => "(while [ 1 ]; do sleep 1; echo y; done)|${android::config::sdk_dir}/bin/android update sdk --all --no-ui --filter ${filter}",
provider => 'shell',
timeout => 0,
creates => $dest,
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/definition_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
should include_class('android::sdk')

should contain_exec('android-update-android-17').with({
:command => "/opt/boxen/homebrew/opt/android-sdk/bin/android update sdk --all --no-ui --filter android-17",
:command => "(while [ 1 ]; do sleep 1; echo y; done)|/opt/boxen/homebrew/opt/android-sdk/bin/android update sdk --all --no-ui --filter android-17",
:provider => 'shell',
:timeout => 0,
:creates => '/opt/boxen/homebrew/opt/android-sdk/platforms/android-17',
Expand Down

0 comments on commit 388ac30

Please sign in to comment.