#!/bin/bash # Use the first argument as the commit message, or default to "Update book content" COMMIT_MSG=${1:-"Update book content"} echo "Staging changes..." git add . echo "Committing with message: '$COMMIT_MSG'" git commit -m "$COMMIT_MSG" echo "Pushing to Hugging Face Spaces..." git push origin main echo "Done!"