mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
Adding a validating script for git conflict marks Moving to Github flavored markdown titles Signed-off-by: Damien DUPORTAL <damien.duportal@gmail.com>
25 lines
550 B
Bash
Executable File
25 lines
550 B
Bash
Executable File
#!/bin/sh
|
|
|
|
IN_MARK=$(grep -r "^<<<<<<<" *)
|
|
if [ $? -eq 0 ]; then
|
|
echo "-- Git conflict marks have been found, please correct them :"
|
|
echo "$IN_MARK"
|
|
exit 1
|
|
fi
|
|
|
|
OUT_MARK=$(grep -r "^>>>>>>>" *)
|
|
if [ $? -eq 0 ]; then
|
|
echo "-- Git conflict marks have been found, please correct them :"
|
|
echo "$OUT_MARK"
|
|
exit 1
|
|
fi
|
|
|
|
SEPARATE_MARK=$(grep -r "^=======$" *)
|
|
if [ $? -eq 0 ]; then
|
|
echo "-- Git conflict marks have been found, please correct them :"
|
|
echo "$SEPARATE_MARK"
|
|
exit 1
|
|
fi
|
|
|
|
echo "-- Congratulations : no git conflict marks have been found !"
|