Skip to content

Commit 51a92a1

Browse files
committed
fix: resolve shebang and executable file issues
- Remove shebangs from Python scripts (run via uv, not directly) - Mark shell scripts as executable (run directly via curl/bash) - Add check-shebang-scripts-are-executable to pre-commit config
1 parent 5d2bd5c commit 51a92a1

File tree

7 files changed

+4
-2
lines changed

7 files changed

+4
-2
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ repos:
2929
description: Trims trailing whitespace in non-Python text files
3030
exclude: ^.*\.(pyi?|py)$
3131

32+
- id: check-shebang-scripts-are-executable
33+
name: Check shebang scripts
34+
description: Check that text files with a shebang are executable
35+
3236
- repo: local
3337
hooks:
3438
- id: markdownlint

scripts/install-claude.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python3
21
"""
32
Cross-platform Claude Code installer.
43
Handles Git Bash (Windows), Node.js, and Claude Code CLI installation.

scripts/linux/install-claude-linux.sh

100644100755
File mode changed.

scripts/linux/setup-python-environment.sh

100644100755
File mode changed.

scripts/macos/install-claude-macos.sh

100644100755
File mode changed.

scripts/macos/setup-python-environment.sh

100644100755
File mode changed.

scripts/setup-python-environment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#!/usr/bin/env python3
21
"""
32
Cross-platform Python environment setup for Claude Code.
43
Downloads and configures Python development tools for Claude Code.

0 commit comments

Comments
 (0)