1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-08 10:00:04 +00:00

chore: devops rules, updated gitignore and git hook

This commit is contained in:
2021-03-22 10:14:52 +01:00
parent db859bbf1d
commit b7f5a2ec00
2 changed files with 7 additions and 4 deletions

View File

@@ -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

5
.gitignore vendored
View File

@@ -3,4 +3,7 @@ node_modules
sasjsbuild/
# avoid filenames with spaces being committed to source control
**\ **
**\ **
# ignore the mc_* files - containing macros for individual libraries
mc_*