Skip to content

Instantly share code, notes, and snippets.

@vgaidarji
Created May 31, 2017 16:39
Show Gist options
  • Select an option

  • Save vgaidarji/d0673e9a7713fcd8229a08be9e0838bd to your computer and use it in GitHub Desktop.

Select an option

Save vgaidarji/d0673e9a7713fcd8229a08be9e0838bd to your computer and use it in GitHub Desktop.

Revisions

  1. vgaidarji created this gist May 31, 2017.
    10 changes: 10 additions & 0 deletions sdkmanager-accept-licenses.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    #!/bin/bash

    /usr/bin/expect -c '
    set timeout -1;
    spawn '"${ANDROID_HOME}"'/tools/bin/sdkmanager --licenses;
    expect {
    "y/N" { exp_send "y\r" ; exp_continue }
    eof
    }
    '