mirror of
https://gitlab.com/spaceti-app/integrations/common/server-sdk.git
synced 2026-07-12 16:10:38 +02:00
21 lines
458 B
Bash
Executable File
21 lines
458 B
Bash
Executable File
#!/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
|