From 5d29744ad788800bcfe0be72360c88287f989b9d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 13 Jul 2018 12:04:37 +0200 Subject: [PATCH] Add css/scss to general file tests --- Hooks/syntax.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hooks/syntax.sh b/Hooks/syntax.sh index 009aeff..1fbb104 100644 --- a/Hooks/syntax.sh +++ b/Hooks/syntax.sh @@ -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