added hook folder to repo

This commit is contained in:
2025-05-11 19:54:14 -05:00
parent 861b820ec6
commit a8c6ff1752
19 changed files with 892 additions and 0 deletions

12
hooks/pre-commit Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
echo "🛠️ Normalizing line endings and file attributes before commit..."
git add --renormalize .
FILE="1.20.1-FearFactoryTest/minecraft/config/fabric/indigo-renderer.properties"
if [ -f "$FILE" ]; then
echo "🛠️ Normalizing timestamp in $FILE"
sed -i '2s/^#.*$/#Static Timestamp Removed/' "$FILE"
git add "$FILE"
fi