Skip to content
Snippets Groups Projects
Commit 13aa5bb6 authored by Mr Felix Berg's avatar Mr Felix Berg
Browse files

Update file validate-test.sh

parent 4df4cc56
Branches
No related tags found
No related merge requests found
Pipeline #393 failed
#!/bin/bash
ERRORS="$(cat validate_output.txt | grep "Tidy found" | | sed -n 's/.*\([0-9]\+\) errors.*/\1/p'
ERRORS="$(cat validate_output.txt | grep "Tidy found" | sed -n 's/.*\([0-9]\+\) errors.*/\1/p'
cat validate_output.txt | grep "Number of errors"
WARNINGS="$(cat validate_output.txt | grep "Tidy" | | sed -n 's/.*\([0-9]\+\) warnings.*/\1/p'
WARNINGS="$(cat validate_output.txt | grep "Tidy" | sed -n 's/.*\([0-9]\+\) warnings.*/\1/p'
cat validate_output.txt | grep "Number of warnings"
if [ "$ERRORS" && "$WARNINGS" = 0];then
exit 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment