Skip to content

Commit fe5f07d

Browse files
committed
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 github#43.
1 parent 7176d2d commit fe5f07d

7 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ Once the implementation step is done, ask Claude Code to try to run the applicat
348348
If you're having issues with Git authentication on Linux, you can install Git Credential Manager:
349349

350350
```bash
351-
#!/bin/bash
351+
#!/usr/bin/env bash
352352
set -e
353353
echo "Downloading Git Credential Manager v2.6.1..."
354354
wget https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.6.1/gcm-linux_amd64.2.6.1.deb

‎scripts/check-task-prerequisites.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Check that implementation plan exists and find optional design documents
33
# Usage: ./check-task-prerequisites.sh [--json]
44

@@ -59,4 +59,4 @@ else
5959
check_file "$QUICKSTART" "quickstart.md"
6060
fi
6161

62-
# Always succeed - task generation should work with whatever docs are available
62+
# Always succeed - task generation should work with whatever docs are available

‎scripts/common.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Common functions and variables for all scripts
33

44
# Get repository root
@@ -74,4 +74,4 @@ check_dir() {
7474
echo " ✗ $description"
7575
return 1
7676
fi
77-
}
77+
}

‎scripts/create-new-feature.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Create a new feature with branch, directory structure, and template
33
# Usage: ./create-new-feature.sh "feature description"
44
# ./create-new-feature.sh --json "feature description"
@@ -93,4 +93,4 @@ else
9393
echo "BRANCH_NAME: $BRANCH_NAME"
9494
echo "SPEC_FILE: $SPEC_FILE"
9595
echo "FEATURE_NUM: $FEATURE_NUM"
96-
fi
96+
fi

‎scripts/get-feature-paths.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Get paths for current feature branch without creating anything
33
# Used by commands that need to find existing feature files
44

@@ -20,4 +20,4 @@ echo "BRANCH: $CURRENT_BRANCH"
2020
echo "FEATURE_DIR: $FEATURE_DIR"
2121
echo "FEATURE_SPEC: $FEATURE_SPEC"
2222
echo "IMPL_PLAN: $IMPL_PLAN"
23-
echo "TASKS: $TASKS"
23+
echo "TASKS: $TASKS"

‎scripts/setup-plan.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Setup implementation plan structure for current branch
33
# Returns paths needed for implementation plan generation
44
# Usage: ./setup-plan.sh [--json]
@@ -41,4 +41,4 @@ else
4141
echo "IMPL_PLAN: $IMPL_PLAN"
4242
echo "SPECS_DIR: $FEATURE_DIR"
4343
echo "BRANCH: $CURRENT_BRANCH"
44-
fi
44+
fi

‎scripts/update-agent-context.sh‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Incrementally update agent context files based on new feature plan
33
# Supports: CLAUDE.md, GEMINI.md, and .github/copilot-instructions.md
44
# O(1) operation - only reads current context file and new plan.md
@@ -231,4 +231,4 @@ echo "Usage: $0 [claude|gemini|copilot]"
231231
echo " - No argument: Update all existing agent context files"
232232
echo " - claude: Update only CLAUDE.md"
233233
echo " - gemini: Update only GEMINI.md"
234-
echo " - copilot: Update only .github/copilot-instructions.md"
234+
echo " - copilot: Update only .github/copilot-instructions.md"

0 commit comments

Comments
 (0)