Skip to content

Instantly share code, notes, and snippets.

@diegopacheco
Created September 11, 2015 23:04
Show Gist options
  • Save diegopacheco/e32c6fc2f0c4febb872a to your computer and use it in GitHub Desktop.
Save diegopacheco/e32c6fc2f0c4febb872a to your computer and use it in GitHub Desktop.
How to Run BASH script from Gradle Task?
task hello(type: Exec) {
executable "sh"
args "-c", "echo 'hello from your shell'"
}
@pandelisgreen13
Copy link

thanks a lot for your help, you saved my day about the shell scripts

@tsouza
Copy link

tsouza commented Apr 7, 2023

This doesn't seems to work with latest gradle version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment