Files
KNELCloudronPackages/scripts/hooks/pre-commit

12 lines
239 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
if [[ "${SKIP_CI_HOOKS:-}" == "1" ]]; then
echo "Skipping CI hooks because SKIP_CI_HOOKS=1"
exit 0
fi
REPO_ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)
${REPO_ROOT}/scripts/ci_local.sh lint