Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make all scripts executable #365

Merged
merged 1 commit into from
Mar 4, 2025
Merged

Conversation

mintar
Copy link
Contributor

@mintar mintar commented Feb 24, 2025

This fixes the following error when starting the dev container:

Running the postCreateCommand from devcontainer.json...

[179341 ms] Start: Run in container: /bin/sh -c curl -LsSf https://astral.sh/uv/install.sh | sh && scripts/setup
downloading uv 0.6.2 x86_64-unknown-linux-gnu
no checksums to verify
installing to /home/vscode/.local/bin
  uv
  uvx
everything's installed!
/bin/sh: 1: scripts/setup: Permission denied
exit status 126
[183716 ms] postCreateCommand from devcontainer.json failed with exit code 126. Skipping any further user-provided commands.
Done. Press any key to close the terminal.

Since these scripts have a hashbang, they should also have the executable bit set.

This fixes the following error when starting the dev container:

```
Running the postCreateCommand from devcontainer.json...

[179341 ms] Start: Run in container: /bin/sh -c curl -LsSf https://astral.sh/uv/install.sh | sh && scripts/setup
downloading uv 0.6.2 x86_64-unknown-linux-gnu
no checksums to verify
installing to /home/vscode/.local/bin
  uv
  uvx
everything's installed!
/bin/sh: 1: scripts/setup: Permission denied
exit status 126
[183716 ms] postCreateCommand from devcontainer.json failed with exit code 126. Skipping any further user-provided commands.
Done. Press any key to close the terminal.
```

Since these scripts have a hashbang, they should also have the
executable bit set.
@pail23 pail23 merged commit d5b228f into pail23:main Mar 4, 2025
4 checks passed
@mintar mintar deleted the make-scripts-executable branch March 5, 2025 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants