Skip to content

Use more generic "#!/usr/bin/env bash" instead of "#!/bin/bash" - #80

Merged
obra merged 1 commit into
obra:mainfrom
sotte:fix__use_usr_bin_env_bash
Nov 24, 2025
Merged

obra merged 1 commit into
obra:mainfrom
sotte:fix__use_usr_bin_env_bash

Conversation

@sotte

@sotte sotte commented Nov 1, 2025 •

Copy link
Copy Markdown
Contributor

"#!/bin/bash" does not work with nixos.

Motivation and Context

"#!/bin/bash" does not work with nixos.

How Has This Been Tested?

I ran the changed script.

Breaking Changes

No.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Summary by CodeRabbit

  • Chores
    • Updated script compatibility for improved system portability.

@coderabbitai

coderabbitai Bot commented Nov 1, 2025 •

Copy link
Copy Markdown

Walkthrough

A shebang line in a single shell script is updated from #!/bin/bash to #!/usr/bin/env bash to improve portability across different system configurations.

Changes

Cohort / File(s) Summary
Shebang portability enhancement
skills/root-cause-tracing/find-polluter.sh
Updated shebang from #!/bin/bash to #!/usr/bin/env bash for improved cross-platform compatibility

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A hop and a skip, the shebang takes flight,
From bash to env bash, now paths align right,
Across every system, this script shall run free,
One line changed gently, portability's the key! 🐰✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The PR title directly and accurately describes the primary change in the changeset: replacing the shebang from #!/bin/bash to #!/usr/bin/env bash for improved portability. The title is specific, concise, and avoids vague terminology, making it clear to anyone reviewing the project history. It aligns perfectly with the documented change and the PR's objective to fix NixOS compatibility.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b187e75 and fd7bbe4.

📒 Files selected for processing (1)
  • skills/root-cause-tracing/find-polluter.sh (1 hunks)
🔇 Additional comments (1)
skills/root-cause-tracing/find-polluter.sh (1)

1-1: Excellent portability fix.

Replacing #!/bin/bash with #!/usr/bin/env bash is the correct approach for cross-platform compatibility. This resolves the NixOS compatibility issue while maintaining identical script behavior on all other systems.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@obra
obra merged commit 4ae8fc8 into obra:main Nov 24, 2025
EthanJStark pushed a commit to EthanJStark/superpowers that referenced this pull request Dec 16, 2025
aronchick pushed a commit to aronchick/superpowers that referenced this pull request Feb 19, 2026
aronchick pushed a commit to aronchick/superpowers that referenced this pull request Feb 19, 2026
shihao-hc pushed a commit to shihao-hc/superpowers that referenced this pull request Apr 6, 2026
FingerLiu added a commit to hyper-instrument/ace-superpowers that referenced this pull request Jun 2, 2026
ACE now installs as package name `ace` (package-dir ace=src). Hooks and
device onboarding templates still imported src.core, which breaks at runtime.

Co-authored-by: Cursor <[email protected]>
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