Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am franzbecker on github.
  • I am franzbecker (https://keybase.io/franzbecker) on keybase.
  • I have a public key whose fingerprint is FA2A FB4F 64A4 8CDE 499B 29BB 6F58 13BD 6893 9B2B

To claim this, I am signing this object:

@franzbecker
franzbecker / gradle.bash
Last active March 27, 2016 13:44
Bash function for using ./gradlew or gradle as fall-back
# Call ./gradlew or gradle as fall-back
function g() {
if [ -f gradlew ]; then
./gradlew $@
else
# if there is no ./gradlew check if there is a build.gradle file
# if not ask the user for confirmation (avoid creation of .gradle dir in unrelated directories)
if [ -f build.gradle ]; then
gradle $@
else