Skip to content

Instantly share code, notes, and snippets.

@muhfaris
Created November 1, 2017 12:59
Show Gist options
  • Save muhfaris/23f0b92a09e74563e3b1a5517dbac0f6 to your computer and use it in GitHub Desktop.
Save muhfaris/23f0b92a09e74563e3b1a5517dbac0f6 to your computer and use it in GitHub Desktop.
By pass prompt confirmation (y/n) in commnad line
(while sleep 3; do echo "y"; done) | execute app
example:
(while sleep 3; do echo "y"; done) | $ANDROID_HOME/tools/android update sdk -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment