Skip to content

Instantly share code, notes, and snippets.

@cubuspl42
Created April 19, 2019 15:02
Show Gist options
  • Save cubuspl42/ad277079f2cbc3c0bddb10f63ba1a3d2 to your computer and use it in GitHub Desktop.
Save cubuspl42/ad277079f2cbc3c0bddb10f63ba1a3d2 to your computer and use it in GitHub Desktop.
#!/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
@chakrihacker
Copy link

Thanks

@wamaeb
Copy link

wamaeb commented Sep 24, 2021

echo "Thank you"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment