From 1ee10359de5b1f9fdb051203c1542dbf0c8dc875 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 11 Aug 2018 11:07:30 +0200 Subject: [PATCH] Create travis build+pull out to functions --- Hooks/delegator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hooks/delegator.sh b/Hooks/delegator.sh index 07a9c47..b9f3da0 100644 --- a/Hooks/delegator.sh +++ b/Hooks/delegator.sh @@ -11,7 +11,7 @@ git diff --cached --name-only | while read FILE; do fi # Filename - if [[ ! $(isValidFileName "$FILE") = 1 ]]; then + if [[ ! $(isValidFileName "$FILE") ]]; then echo -e "\e[1;31m\tInvalid file name.\e[0m" >&2 exit 1 fi