This commit is contained in:
Erick Zanardo
2020-06-23 19:38:24 -03:00
parent 48856815db
commit e43e6817fc

View File

@ -16,8 +16,7 @@ for f in doc/examples/**/pubspec.yaml; do
cd - > /dev/null cd - > /dev/null
done done
analyzer() { cd .
cd $1
flutter pub get flutter pub get
result=$(flutter analyze .) result=$(flutter analyze .)
if ! echo "$result" | grep -q "No issues found!"; then if ! echo "$result" | grep -q "No issues found!"; then
@ -25,10 +24,6 @@ analyzer() {
echo "flutter analyze issue: $1" echo "flutter analyze issue: $1"
exit 1 exit 1
fi fi
cd - > /dev/null
}
analyzer .
echo "success" echo "success"
exit 0 exit 0