Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
Commit 45ec4448 authored by g4m4's avatar g4m4
Browse files

[SCRIPTS] Move log analysis into a better folder

parent 7da2c68f
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
set -e
#~set -x
echo "Analysing log"
grep "warning:" -i build.log | tee warnings.log
if [ -s warnings.log ]; then
warnings_count=$(cat warnings.log | wc -l)
echo "Found $warnings_count warning(s):"
cat warnings.log
exit 1
else
echo "No warnings in build."
exit
fi
#!/usr/bin/env bash
# If having issues on the first execution line of this script,
# please make sure you did not introduce DOS line endings!
set -e
#~set -x
echo "Analysing log"
grep -e "warning:" -e "should add" -e "should remove" -i $1 | tee $2
if [ -s $2 ]; then
warnings_count=$(cat $2 | wc -l)
echo "Found $warnings_count warning(s)"
exit 1
else
echo "No warnings in build."
exit
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment