Files
xrpl-dev-portal/tool/conflictmarkers.sh
2017-11-13 15:53:27 -08:00

15 lines
326 B
Bash
Executable File

#!/bin/bash
PATTERNS=('<<<<<<<' '>>>>>>>')
#not including ====== because that can be used for markdown h1 syntax
n=0
for p in ${PATTERNS[@]}; do
g=`grep -R $p content/* | grep -v '^Binary file .* matches$'`
if [[ ! -z $g ]]; then
echo "Git merge conflict marker $p found: $g"
n=1
fi
done
exit $n