fix(scripts): put the shebang on line 1 of panll-launcher.sh - #115
Conversation
The shebang was not the first line, so the kernel never honoured it — the script ran under whatever shell invoked it rather than the one it declares. shellcheck reports this as SC1128. Found by an estate-wide sweep of 5,111 tracked scripts across 375 repos: 20 files carry this defect, 19 of them a generated *-launcher.sh. ⚠ Source not identified. The generator, standards/docs/UX-standards/comprehensive-launcher-template.sh, is CLEAN — its own line 1 is the shebang and it reports 0 shellcheck errors. The stray line is therefore introduced when the launcher is copied into each repo, by something not yet found, so this may recur until that is tracked down. Other lines are preserved in order; only the shebang moves.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
💤 Files with no reviewable changes (1)
Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review. 📜 Recent review details⏰ Context from checks skipped due to timeout. (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughAdded a generated Bash launcher for PanLL. The launcher manages the server lifecycle, waits for the configured URL, reports startup failures, detects platforms, shows GUI errors, and supports Linux desktop integration. Changes
Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This is a localized script-correctness fix that restores the declared interpreter behavior without changing other script content. No actionable merge-blocking risk remains beyond normal checks and review. Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. ✨ Finishing Touches📝 Generate docstrings
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. Comment |
|
Up to standards ✅🟢 Issues
|
There was a problem hiding this comment.
Pull Request Overview
The modification to panll-launcher.sh targets an auto-generated file. This manual fix is likely to be overwritten during the next launch-scaffolder realignment, so the change should be implemented in the generator source to prevent regression.
About this PR
- The file
panll-launcher.shis managed bylaunch-scaffolder. Manual edits made here will likely be lost. Consider updating the generator or template to ensure the shebang fix persists.
Test suggestions
- Verify shebang presence and position using a linter (e.g., Shellcheck SC1128)
- Execute the script directly (e.g.,
./panll-launcher.sh) to verify kernel interpreter resolution
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Verify shebang presence and position using a linter (e.g., Shellcheck SC1128)
2. Execute the script directly (e.g., `./panll-launcher.sh`) to verify kernel interpreter resolution
TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback



The shebang was not the first line, so the kernel never honoured it — the script ran under whatever shell invoked it rather than the one it declares. shellcheck reports this as
SC1128.Found by an estate-wide sweep of 5,111 tracked scripts across 375 repos: 20 files carry this defect, 19 of them a generated
*-launcher.sh.⚠ Source not identified. The generator
standards/docs/UX-standards/comprehensive-launcher-template.shis clean — its own line 1 is the shebang and it reports 0 shellcheck errors. The stray line is introduced when the launcher is copied into each repo, by something not yet found, so this may recur until that is tracked down.Other lines are preserved in order; only the shebang moves.