7 lines
226 B
Bash
Executable File
7 lines
226 B
Bash
Executable File
#!/usr/bin/env bash
|
||
set -euo pipefail
|
||
|
||
ROOT_DIR="$(cd "$(dirname "$0")/.." && pwd)"
|
||
git -C "$ROOT_DIR" config core.hooksPath .githooks
|
||
echo "已启用 .githooks(推送前执行 scripts/check.sh;SKIP_CHECKS=1 可跳过)"
|