Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesrwarren committed Jan 28, 2021
1 parent 99c50d9 commit 232999f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions run-test-hook.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
#!/usr/bin/env bash

while getopts d: option
do
case "${option}"
in
d) DIRECTORY=${OPTARG};;
esac
done

if [ `grep -r '| raw' client/templates/* | grep -v 'assetSource' | wc -l` -gt 1 ]
if [ `grep -r '\(|\| |\)raw' ${DIRECTORY}/* | grep -v 'assetSource' | wc -l` -gt 1 ]
then
echo "Raw in directory"
echo "Instances of raw in ${DIRECTORY}. Please remove"
exit 1
else
exit 0
Expand Down

0 comments on commit 232999f

Please sign in to comment.