Skip to content

Instantly share code, notes, and snippets.

Created February 3, 2021 07:42
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
This is a quite simple script that cleans all your grade/flutter projects inside a folder

Works on linux and macOS (and linux inside Windows)

  1. Download the script (or copy paste it)
  2. Put the script in the same folder than your projects
  3. chmod +x, if you didn't change the name => `chmod +x
  4. ./
  5. Wait and enjoy!!

If you find this gist helpful, don't forget the star! :)

for d in */ ; do
cd $d
if [ -f "pubspec.yaml" ]; then
echo "$d is a flutter project"
flutter clean
echo "$d is a gradle project"
./gradlew clean
cd ..
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment