| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/barracoder/opencode/dev/script/hooks | [Back] [Original] |
#!/bin/sh
if [ ! -d ".git" ]; then
exit 0
fi
mkdir -p .git/hooks
cat > .git/hooks/pre-push /dev/null 2>&1; then
bun install >/dev/null 2>&1 || true
fi
bun run typecheck
EOF
chmod +x .git/hooks/pre-push
echo " Pre-push hook installed"
| Web Proxy Viewer | New URL | Original Page |