Skip to content

Instantly share code, notes, and snippets.

@renkin
Last active December 16, 2021 00:42
Show Gist options
  • Save renkin/9d6ca4b8e517914893c1160e61748abb to your computer and use it in GitHub Desktop.
Save renkin/9d6ca4b8e517914893c1160e61748abb to your computer and use it in GitHub Desktop.
#!/bin/bash
# Parameter 1 ist ausgeführter Git Befehl, z.B. pull
find . -maxdepth 1 -type d -path '*/[^\.]*' -not -path '*/target' -not -path '*/src' -printf '\n\n************************\n%p\n************************\n\n' -exec sh -c "cd {}; pwd; mvn $1; cd .." \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment