#!/bin/bash CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" source $CURRENT_DIR/common.sh SOURCE_DIR=$PWD cd $SOURCE_DIR info "Checking line ending" RESULT=$( find . -not -type d -exec file "{}" ";" | grep "ASCII text, with CRLF" | cat) if [ ! -z "$RESULT" ]; then echo "----------------------------------" echo "$RESULT" echo "----------------------------------" fail "LF check finished with error" fi