Files
docker-machine/script/validate-git-marks
Damien DUPORTAL 63fb06cd0b Change markdowns tags to not met git conflicts markers accidentaly
Adding a validating script for git conflict marks

Moving to Github flavored markdown titles

Signed-off-by: Damien DUPORTAL <damien.duportal@gmail.com>
2015-01-26 15:16:11 +01:00

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 !"