Spaces:
Sleeping
Sleeping
Download scripts/setup.sh from DecodeMarketing/decode_tools: direct link, hf CLI and curl.
- Browser
- Download file 850 Bytes
-
https://huggingface.co/spaces/DecodeMarketing/decode_tools/resolve/7a5c442e4e222c85bc5a0a3ea9352db7de4e1a57/scripts/setup.sh
- Command line
-
hf download hf://spaces/DecodeMarketing/decode_tools@7a5c442e4e222c85bc5a0a3ea9352db7de4e1a57/scripts/setup.sh
-
curl -L -o setup.sh https://huggingface.co/spaces/DecodeMarketing/decode_tools/resolve/7a5c442e4e222c85bc5a0a3ea9352db7de4e1a57/scripts/setup.sh
850 Bytes
| # | |
| # DECODE repo setup — run once after cloning or pulling this hardening PR. | |
| # Wires the .githooks/pre-commit into git. | |
| # | |
| # Idempotent: safe to re-run. | |
| set -euo pipefail | |
| REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)" | |
| cd "$REPO_ROOT" | |
| # Wire the hooks path | |
| if [ -d ".githooks" ]; then | |
| git config core.hooksPath .githooks | |
| echo "[setup] core.hooksPath set to .githooks" | |
| else | |
| echo "[setup] WARN: .githooks/ not found — pre-commit gate will not run" | |
| exit 1 | |
| fi | |
| # Ensure hooks are executable | |
| chmod +x .githooks/* 2>/dev/null || true | |
| chmod +x .claude/hooks/*.sh 2>/dev/null || true | |
| chmod +x scripts/*.sh 2>/dev/null || true | |
| echo "[setup] Done. On your next commit, the reviewer-marker + language gate will run." | |
| echo "[setup] To bypass (with audit trail): git commit -m '... [override-reviewer: reason]'" | |