Files
screeps-deploy-action/.devcontainer/setup.sh
Philipp Horstenkamp 3f19a64809
All checks were successful
Lint / pre-commit Linting (push) Successful in 51s
fix: pre-commit hooks should now be installable in dev containers (#56)
Reviewed-on: #56
2025-12-31 18:55:42 +01:00

12 lines
296 B
Bash

#!/bin/bash
# 1. Fix Git Permissions (Critical in Docker)
git config --global --add safe.directory $(pwd)
# In your setup.sh or postCreateCommand
sudo chown -R node:node /home/node/.cache/
sudo chown -R node:node .git/hooks
# 2. Re-connect Git Hooks
pre-commit install
pre-commit install-hooks