Files
screeps-deploy-action/.devcontainer/setup.sh
Philipp Horstenkamp eb3a74b709
All checks were successful
Lint / pre-commit Linting (push) Successful in 1m45s
feat: Add devcontainer configuration and setup script for Gemini Agent
2025-12-25 11:12:41 +01:00

17 lines
505 B
Bash

#!/bin/bash
# 1. Fix Git Permissions (Critical in Docker)
sudo chown -R $(whoami) .git
git config --global --add safe.directory $(pwd)
# 2. Re-connect Git Hooks
# 'pre-commit install' is idempotent (it checks if the hook exists and exits fast).
# It's safe to run on every start.
if command -v pre-commit &> /dev/null; then
pre-commit install
else
echo "⚠️ Warning: pre-commit not found. Skipping hook installation."
fi
# We REMOVED 'npm install' from here to speed up your daily workflow.