Commit 86d40ed4 authored by Richard Mansfield's avatar Richard Mansfield

Avoid shell syntax error when checking parent of phpunit directory

parent 00cb5d6f
......@@ -158,8 +158,8 @@ do
parentdir=`dirname "$dir"`
# Determine whether the parent directory contains anything other than
# phpunit. If not, ignore the whole parent directory.
find "$parentdir" -maxdepth 1 -mindepth 1 | grep -v 'tests/phpunit$' > /dev/null
if [ $? -eq 1 ]
siblings=`find "$parentdir" -maxdepth 1 -mindepth 1 | wc -l`
if [ "$siblings" = "1" ]
then
echo "$parentdir export-ignore" >> .gitattributes
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment