mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-13 01:28:40 +00:00
Add css/scss to general file tests
This commit is contained in:
parent
7f8098c3fa
commit
5d29744ad7
|
|
@ -102,7 +102,7 @@ if [[ "$FILE" =~ ^.+(sh)$ ]]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# text files in general
|
# 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
|
# Check whitespace end of line in code
|
||||||
if [[ -n $(grep -E ' $' $FILE) ]]; then
|
if [[ -n $(grep -E ' $' $FILE) ]]; then
|
||||||
echo -e "\e[1;31m\tFound whitespace at end of line.\e[0m" >&2
|
echo -e "\e[1;31m\tFound whitespace at end of line.\e[0m" >&2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user