Forked from jeroen-meijer/fluttercleanrecursive.sh
Created
September 15, 2019 20:37
-
-
Save cemo/72fd8dffbe0deb2d9b1c97c1ebfb0b57 to your computer and use it in GitHub Desktop.
Revisions
-
jeroen-meijer created this gist
Sep 15, 2019 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,19 @@ #!/bin/sh # To run, download the script or copy the code to a '.sh' file (for example 'fluttercleanrecursive.sh') and run like any other script: # sh ./fluttercleanrecursive.sh # or # sudo sh fluttercleanrecursive.sh echo "Flutter Clean Recursive (by jeroen-meijer on GitHub Gist)" echo "Looking for projects... (may take a while)" find . -name "pubspec.yaml" -exec $SHELL -c ' echo "Done. Cleaning all projects." for i in "$@" ; do DIR=$(dirname "${i}") echo "Cleaning ${DIR}..." (cd "$DIR" && flutter clean >/dev/null 2>&1) done echo "DONE!" ' {} +