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