Created
April 19, 2019 15:02
-
-
Save cubuspl42/ad277079f2cbc3c0bddb10f63ba1a3d2 to your computer and use it in GitHub Desktop.
This file contains 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/sh | |
OUTPUT="$(flutter analyze)" | |
echo "$OUTPUT" | |
echo | |
if grep -q "error •" <<< "$OUTPUT"; then | |
echo "flutter analyze found errors" | |
exit 1 | |
else | |
echo "flutter analyze didn't find any errors" | |
exit 0 | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks