diff --git a/.githooks/pre-commit b/.githooks/pre-commit index d680c22..079896f 100755 --- a/.githooks/pre-commit +++ b/.githooks/pre-commit @@ -19,14 +19,14 @@ files=$( git diff --cached --find-copies --find-renames --name-only --diff-filte grep -Ei "$mime_pattern" | grep -E "$extra_pattern" ) echo "$files" -if [ "$files" !="" ]; +if [[ -n "$files" ]]; then echo echo "Found files that contain capital letters." - echo "Please rename the following files and commit again:" + echo "Please rename the following files in lowercase, and commit again:" for file in $files; do - echo -e '\E[0;32m'"$file"'\033[0m' + echo -e '- \E[0;32m'"$file"'\033[0m' done # Abort commit exit_code=1 diff --git a/.gitignore b/.gitignore index a6210ac..862fe0a 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,7 @@ node_modules sasjsbuild/ # avoid filenames with spaces being committed to source control -**\ ** \ No newline at end of file +**\ ** + +# ignore the mc_* files - containing macros for individual libraries +mc_* \ No newline at end of file