#!/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

