diff --git a/run-test-hook.sh b/run-test-hook.sh index d54900e..b9d7e4e 100755 --- a/run-test-hook.sh +++ b/run-test-hook.sh @@ -8,7 +8,7 @@ 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 "Instances of raw in ${DIRECTORY}. Please remove" exit 1