Skip to content

Instantly share code, notes, and snippets.

@codingwithsaeed
Created June 18, 2019 04:54
Show Gist options
  • Save codingwithsaeed/9d621d9dcd769d7344780279d3442a86 to your computer and use it in GitHub Desktop.
Save codingwithsaeed/9d621d9dcd769d7344780279d3442a86 to your computer and use it in GitHub Desktop.
Bash script for cleaning '.gradle' and 'build' folders in android workspace
#! /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