mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-13 16:25:49 +00:00
15 lines
326 B
Bash
Executable File
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
|