summaryrefslogtreecommitdiffstats
path: root/TOOLS
diff options
context:
space:
mode:
Diffstat (limited to 'TOOLS')
-rwxr-xr-xTOOLS/checktree.sh4
1 files changed, 2 insertions, 2 deletions
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
# -----------------------------------------------------------------------------