From dcf1a0b977c5fa35b5cba90650814a117751155f Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 11 Aug 2018 11:10:22 +0200 Subject: [PATCH] Add invalid filename name --- Hooks/delegator.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hooks/delegator.sh b/Hooks/delegator.sh index b9f3da0..a3d1c87 100644 --- a/Hooks/delegator.sh +++ b/Hooks/delegator.sh @@ -12,7 +12,7 @@ git diff --cached --name-only | while read FILE; do # Filename if [[ ! $(isValidFileName "$FILE") ]]; then - echo -e "\e[1;31m\tInvalid file name.\e[0m" >&2 + echo -e "\e[1;31m\tInvalid file name '$FILE'.\e[0m" >&2 exit 1 fi