Use /usr/bin/env bash instead of /bin/bash for shebang

Some systems like NixOS don't have `/bin/bash`.
Ref: https://discourse.nixos.org/t/add-bin-bash-to-avoid-unnecessary-pain/5673

This changes allow to run scripts in those systems.

Fixes #43.
This commit is contained in:
Yuji Yaginuma
2025-09-07 15:18:08 +09:00
parent 7176d2dea3
commit 29eb082e2a
7 changed files with 7 additions and 7 deletions

View File

@@ -348,7 +348,7 @@ Once the implementation step is done, ask Claude Code to try to run the applicat
If you're having issues with Git authentication on Linux, you can install Git Credential Manager: If you're having issues with Git authentication on Linux, you can install Git Credential Manager:
```bash ```bash
#!/bin/bash #!/usr/bin/env bash
set -e set -e
echo "Downloading Git Credential Manager v2.6.1..." echo "Downloading Git Credential Manager v2.6.1..."
wget https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.6.1/gcm-linux_amd64.2.6.1.deb wget https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.6.1/gcm-linux_amd64.2.6.1.deb

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Check that implementation plan exists and find optional design documents # Check that implementation plan exists and find optional design documents
# Usage: ./check-task-prerequisites.sh [--json] # Usage: ./check-task-prerequisites.sh [--json]

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Common functions and variables for all scripts # Common functions and variables for all scripts
# Get repository root # Get repository root

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Create a new feature with branch, directory structure, and template # Create a new feature with branch, directory structure, and template
# Usage: ./create-new-feature.sh "feature description" # Usage: ./create-new-feature.sh "feature description"
# ./create-new-feature.sh --json "feature description" # ./create-new-feature.sh --json "feature description"

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Get paths for current feature branch without creating anything # Get paths for current feature branch without creating anything
# Used by commands that need to find existing feature files # Used by commands that need to find existing feature files

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Setup implementation plan structure for current branch # Setup implementation plan structure for current branch
# Returns paths needed for implementation plan generation # Returns paths needed for implementation plan generation
# Usage: ./setup-plan.sh [--json] # Usage: ./setup-plan.sh [--json]

View File

@@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
# Incrementally update agent context files based on new feature plan # Incrementally update agent context files based on new feature plan
# Supports: CLAUDE.md, GEMINI.md, and .github/copilot-instructions.md # Supports: CLAUDE.md, GEMINI.md, and .github/copilot-instructions.md
# O(1) operation - only reads current context file and new plan.md # O(1) operation - only reads current context file and new plan.md