added hook folder to repo
This commit is contained in:
12
hooks/pre-commit
Executable file
12
hooks/pre-commit
Executable 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
|
||||
|
Reference in New Issue
Block a user