mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-02-15 10:18:40 +00:00
Test
This commit is contained in:
parent
170ac3df08
commit
66af13125b
|
|
@ -63,6 +63,7 @@ git diff --cached --name-only | while read FILE; do
|
||||||
|
|
||||||
if [[ "$FILE" =~ ^.+(sh|js|php|json|css)$ ]]; then
|
if [[ "$FILE" =~ ^.+(sh|js|php|json|css)$ ]]; then
|
||||||
GEN_SYNTAX=$(hasInvalidBasicSyntax "$FILE")
|
GEN_SYNTAX=$(hasInvalidBasicSyntax "$FILE")
|
||||||
|
echo GEN_SYNTAX
|
||||||
|
|
||||||
if [[ $GEN_SYNTAX = 1 ]]; then
|
if [[ $GEN_SYNTAX = 1 ]]; then
|
||||||
echo -e "\e[1;31m\tFound whitespace at end of line in $FILE.\e[0m" >&2
|
echo -e "\e[1;31m\tFound whitespace at end of line in $FILE.\e[0m" >&2
|
||||||
|
|
|
||||||
|
|
@ -13,8 +13,6 @@ echo $rootpath
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo $FILE
|
|
||||||
|
|
||||||
# Filename
|
# Filename
|
||||||
if [[ $(isValidFileName "$FILE") = 1 ]]; then
|
if [[ $(isValidFileName "$FILE") = 1 ]]; then
|
||||||
echo -e "\e[1;31m\tInvalid file name '$FILE'.\e[0m" >&2
|
echo -e "\e[1;31m\tInvalid file name '$FILE'.\e[0m" >&2
|
||||||
|
|
@ -68,8 +66,6 @@ echo $rootpath
|
||||||
|
|
||||||
if [[ "$FILE" =~ ^.+(sh|js|php|json|css)$ ]]; then
|
if [[ "$FILE" =~ ^.+(sh|js|php|json|css)$ ]]; then
|
||||||
GEN_SYNTAX=$(hasInvalidBasicSyntax "$FILE")
|
GEN_SYNTAX=$(hasInvalidBasicSyntax "$FILE")
|
||||||
echo GEN_SYNTAX
|
|
||||||
exit 1
|
|
||||||
|
|
||||||
if [[ $GEN_SYNTAX = 1 ]]; then
|
if [[ $GEN_SYNTAX = 1 ]]; then
|
||||||
echo -e "\e[1;31m\tFound whitespace at end of line in $FILE.\e[0m" >&2
|
echo -e "\e[1;31m\tFound whitespace at end of line in $FILE.\e[0m" >&2
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user