From da62c6196a6da5c8c7b6d643fa49e77bcaf3c07e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gonzalo=20Garramu=C3=B1o?= Date: Sun, 8 Oct 2023 05:42:30 -0300 Subject: [PATCH] Made .githooks/pre-commit more verbose. --- .githooks/pre-commit | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.githooks/pre-commit b/.githooks/pre-commit index 04af88dd2..d430e4bcc 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -13,16 +13,18 @@ do fi else echo "Skipping formatting of $FILE" - if [[ $FILE == *.sh || $FILE == .py || $FILE == .rb || + if [[ $FILE == *.sh || $FILE == *.py || $FILE == *.rb || $FILE == *pre-commit ]]; then if [[ -e $FILE ]]; then + echo "Changing $FILE permissions to 0755" chmod 0755 $FILE fi else if [[ -d $FILE ]]; then chmod 0755 $FILE elif [[ -e $FILE ]]; then - chmod 0644 $FILE + echo "Changing $FILE permissions to 0644" + chmod 0644 $FILE fi fi fi