use '[[' on pre-commit hook and fix indentation