diff --git a/TOOLS/checktree.sh b/TOOLS/checktree.sh index dcd2b8609f..8617c169ea 100755 --- a/TOOLS/checktree.sh +++ b/TOOLS/checktree.sh @@ -257,8 +257,8 @@ fi if [ "$_crlf" == "yes" ]; then printhead "checking for MSDOS line endings ..." - grep $_grepopts " -" $filelist + CR=`echo " " | tr ' ' '\015'` + grep $_grepopts "$CR" $filelist fi # -----------------------------------------------------------------------------