This commit is contained in:
Andras Bacsai
2024-09-23 20:49:26 +02:00
parent 00e1464185
commit 7a0f054f1a

View File

@@ -7,7 +7,7 @@ fi
$(pwd)/vendor/bin/pint $@ $(pwd)/vendor/bin/pint $@
# Get the list of files that were modified by Pint # Get the list of files that were modified by Pint
modified_files=$(git diff --name-only --cached) modified_files=$(git diff --name-only --cached)
echo $modified_files
# Add the modified files back to the staging area # Add the modified files back to the staging area
if [ -n "$modified_files" ]; then if [ -n "$modified_files" ]; then
echo "Adding fixed files to the commit..." echo "Adding fixed files to the commit..."