Created
June 18, 2019 04:54
-
-
Save codingwithsaeed/9d621d9dcd769d7344780279d3442a86 to your computer and use it in GitHub Desktop.
Bash script for cleaning '.gradle' and 'build' folders in android workspace
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
#! /bin/bash | |
clear | |
echo -e "\nHello ;) \nLets purge all '.gradle' and 'build' directories.\n" | |
for directory in */ ; do | |
cd $directory | |
echo "cleaning in $directory" | |
if [ -d .gradle ];then | |
rm -rf .gradle | |
fi | |
if [ -d app ];then | |
cd app | |
if [ -d build ];then | |
rm -rf build | |
fi | |
cd .. | |
fi | |
cd .. | |
done | |
echo -e "\nDone ;)\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment