Fixed pre-commit script