#!/usr/bin/env bash

ROOT_DIR="$(pwd)/"
LIST=$( git diff --name-only --cached --diff-filter=ACM )
PHPCS_BIN=vendor/bin/phpcs

echo "Executing .git/hooks/pre-commit..."
"${ROOT_DIR}"/vendor/bin/blt git:pre-commit "$LIST"

# Return the status of the last run command.
exit $?
