Script for a pre-commit hook