Files
FearFactory/hooks/pre-commit

13 lines
353 B
Plaintext
Raw Permalink Normal View History

2025-05-11 19:54:14 -05:00
#!/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