Add css/scss to general file tests

This commit is contained in:
Dennis Eichhorn 2018-07-13 12:04:37 +02:00 committed by GitHub
parent 7f8098c3fa
commit 5d29744ad7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,7 +102,7 @@ if [[ "$FILE" =~ ^.+(sh)$ ]]; then
fi
# text files in general
if [[ "$FILE" =~ ^.+(sh|js|php|json)$ ]]; then
if [[ "$FILE" =~ ^.+(sh|js|php|json|css)$ ]]; then
# Check whitespace end of line in code
if [[ -n $(grep -E ' $' $FILE) ]]; then
echo -e "\e[1;31m\tFound whitespace at end of line.\e[0m" >&2