Skip to content

fix(scripts): put the shebang on line 1 of aerie-launcher.sh - #70

Merged
hyperpolymath merged 1 commit into
mainfrom
fix/shebang-on-line-1
Aug 27, 2026
Merged

fix(scripts): put the shebang on line 1 of aerie-launcher.sh#70
hyperpolymath merged 1 commit into
mainfrom
fix/shebang-on-line-1

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

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 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.

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.
@coderabbitai

coderabbitai Bot commented Aug 26, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: f1d7f6ab-4da7-4ee2-8b26-dff47b8fb4f7

📥 Commits

Reviewing files that changed from the base of the PR and between 8a33b50 and 03c8457.

📒 Files selected for processing (1)
  • aerie-launcher.sh
💤 Files with no reviewable changes (1)
  • aerie-launcher.sh

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. (5)
  • GitHub Check: analyze (javascript-typescript, none)
  • GitHub Check: Empty-linter (invisible characters)
  • GitHub Check: Validate K9 contracts
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: Gitar

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • No user-visible changes were identified in this update.

Walkthrough

The provided diff shows no observable code change in aerie-launcher.sh.

Changes

Launcher script

Layer / File(s) Summary
Launcher script state
aerie-launcher.sh
The provided range contains an empty change hunk. No code or public declaration changes are shown.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: ⚪ Minimal · up to 03c84

This is a clearly localized one-line script fix, and no actionable merge-blocking risk remains after normal checks and review.

Poem

A rabbit checks the launcher line
No changed code appears in sight
The script remains as it was
No new paths hop into place
The diff is quiet tonight

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description check ✅ Passed The description clearly explains the shebang relocation, the SC1128 warning, and the known generator issue. It directly relates to the changeset.
Title check ✅ Passed The title clearly and concisely describes the main change: moving the shebang to line 1 of aerie-launcher.sh.
Docstring Coverage ✅ Passed 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…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

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 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch

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.

@sonarqubecloud

Copy link
Copy Markdown

@gitar-bot

gitar-bot Bot commented Aug 26, 2026

Copy link
Copy Markdown

Important

You are using the Gitar free plan. Upgrade to unlock code review, CI analysis, auto-apply, custom automations, and more.

Gitar

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@codacy-production codacy-production Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

While moving the shebang to the first line correctly resolves Shellcheck warning SC1128 and ensures the kernel identifies the interpreter, this PR modifies a file explicitly marked as generated by launch-scaffolder.

Codacy currently reports the project is up to standards, but this manual fix is likely to be reverted during the next realignment of the generated code. To ensure a permanent resolution, the change should be implemented in the generator's template or the aerie.launcher.a2ml source configuration. The PR description acknowledges that the source of the defect has not yet been identified, which reinforces the risk of this change being temporary.

About this PR

  • The file header explicitly states it is GENERATED and should not be edited directly. Edits made here will be overwritten the next time launch-scaffolder is run. Since the source of the defect in the generator has not been identified, this manual fix constitutes a temporary workaround rather than a permanent solution.

Test suggestions

  • Execute the script as a standalone executable to verify the kernel honors the shebang.
  • Run shellcheck on the file to verify resolution of SC1128.
Prompt proposal for missing tests
Consider implementing these tests if applicable:
1. Execute the script as a standalone executable to verify the kernel honors the shebang.
2. Run shellcheck on the file to verify resolution of SC1128.

TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback

Comment thread aerie-launcher.sh
@@ -1,4 +1,3 @@

#!/usr/bin/env bash

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 MEDIUM RISK

This file is marked as generated by launch-scaffolder (see lines 27-30). Moving the shebang to the first line is necessary for the script to be correctly recognized as an executable, but manual changes will be lost on the next run of launch-scaffolder realign.

To ensure this fix is permanent, it should be applied to the generator's template or the aerie.launcher.a2ml source configuration.

Try running the following prompt in your IDE agent:

This script is generated by launch-scaffolder. Identify the source template or the configuration file (referenced as aerie.launcher.a2ml on line 27) and explain how to ensure the shebang is correctly placed on line 1 in the generated aerie-launcher.sh output.

@hyperpolymath
hyperpolymath merged commit c6e39d2 into main Aug 27, 2026
11 of 12 checks passed
@hyperpolymath
hyperpolymath deleted the fix/shebang-on-line-1 branch August 27, 2026 00:29
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.

1 participant