Skip to content

Commit 9ecdc02

Browse files
Merge pull request #753 from sveitser/fix-shebangs
Standard portability fix. /bin/bash is not guaranteed on NixOS or macOS with Homebrew bash. /usr/bin/env bash is the correct practice.
2 parents 5a0144d + bec18c4 commit 9ecdc02

11 files changed

Lines changed: 11 additions & 11 deletions

‎.claude/hooks/bash/pre-commit-format.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Auto-format Rust code before commits
33
# Hook: PreToolUse for git commit
44

‎.claude/hooks/rtk-rewrite.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# rtk-hook-version: 3
33
# RTK auto-rewrite hook for Claude Code PreToolUse:Bash
44
# Transparently rewrites raw commands to their RTK equivalents.

‎.claude/hooks/rtk-suggest.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# RTK suggest hook for Claude Code PreToolUse:Bash
33
# Emits system reminders when rtk-compatible commands are detected.
44
# Outputs JSON with systemMessage to inform Claude Code without modifying execution.

‎hooks/claude/test-rtk-rewrite.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Test suite for rtk-rewrite.sh
33
# Feeds mock JSON through the hook and verifies the rewritten commands.
44
#

‎install.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/sh
1+
#!/usr/bin/env sh
22
# rtk installer - https://github.com/rtk-ai/rtk
33
# Usage: curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh
44

‎scripts/benchmark.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -e
33

44
# Use local release build if available, otherwise fall back to installed rtk

‎scripts/check-installation.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# RTK Installation Verification Script
33
# Helps diagnose if you have the correct rtk (Token Killer) installed
44

‎scripts/install-local.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# Install RTK from a local release build (builds from source, no network download).
33

44
set -euo pipefail

‎scripts/rtk-economics.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
# rtk-economics.sh
33
# Combine ccusage (tokens spent) with rtk (tokens saved) for economic analysis
44

‎scripts/update-readme-metrics.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22
set -e
33

44
REPORT="benchmark-report.md"

0 commit comments

Comments
 (0)