mirror of
https://github.com/sasjs/core.git
synced 2026-01-08 01:50:05 +00:00
chore: devops rules, updated gitignore and git hook
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user