Created
September 4, 2018 14:19
-
-
Save afranken/8a1a88f5a554ee7a3bfa365aa3dfc9f4 to your computer and use it in GitHub Desktop.
Call "mvn clean" on all subdirectories that contain a pom.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
for d in *; do | |
echo $d | |
if [ -d $d ]; then | |
cd $d | |
if [ -f pom.xml ]; | |
then | |
mvn clean | |
fi | |
cd .. | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment