Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
gosp authored May 29, 2020
1 parent da30fe2 commit 2bdae53
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
#!/bin/sh
mkdir -p $PWD/.cache
echo $*
/g11nradar/bin/g11n-radar -p $PWD -c $PWD/.cache -d $PWD/detail.csv -s $PWD/summary.csv rule --nostring --locale $*

/g11nradar/bin/g11n-radar -p $PWD -c $PWD/.cache -d $PWD/detail.csv -s $PWD/summary.csv rule --nostring --locale $*

number=`awk -F',' 'FNR==2 {print $4}' summary.csv`


if [ "${number}" -gt "0" ]; then
echo "G11n Issues are found!"
exit 1
fi

0 comments on commit 2bdae53

Please sign in to comment.