Skip to content

Instantly share code, notes, and snippets.

@jakub-trzebiatowski
Created April 19, 2019 15:02
Show Gist options
  • Select an option

  • Save jakub-trzebiatowski/ad277079f2cbc3c0bddb10f63ba1a3d2 to your computer and use it in GitHub Desktop.

Select an option

Save jakub-trzebiatowski/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
Copy Markdown

Thanks

@wamaeb
Copy link
Copy Markdown

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