Skip to content

The ISO workflow's syntax check only checks the first script: bash -n a b c ignores b and c #264

Closed

Description

@nixfred

What happens

.github/workflows/iso.yml has a step called "Check the scripts":

run: bash -n iso/build.sh iso/live/omarchy-server-setup iso/target/target-setup.sh

bash -n takes one script; the extra words are passed to that script as arguments. So only iso/build.sh is syntax-checked. iso/live/omarchy-server-setup (the installer screen) and iso/target/target-setup.sh (which also generates the first-boot script) are not checked at all, so a syntax error in either one gets through CI and is only found when someone builds and boots the ISO.

How to reproduce

printf 'echo ok\n' > good.sh; printf 'if then fi (\n' > bad.sh
bash -n good.sh bad.sh; echo "exit=$?"
bash -n bad.sh;          echo "exit=$?"

Actual output: the first command prints nothing and exits 0; the second prints a syntax error and exits 2. Expected: the first also fails.

Suggested fix

Check each file separately, for example for f in iso/build.sh iso/live/omarchy-server-setup iso/target/target-setup.sh; do bash -n "$f"; done.

Environment

Omarchy Server main (0786ba9, 0.9.50), Node 26.

Activity

  1. calledtoconstruct commented on Nov 22, 2026

    @calledtoconstruct
    Collaborator

    Working to resolve this.

    No open pull request references this issue, and no one has commented that they are working on it.

    #163, #653, #472, #797, #204, #205, #206, #207, #654, #806, #798, #258, #238, and #360 share storage, setup, and new machines with this and will land in one pull request.

    🤖 Generated with Grok 4.7

  2. calledtoconstruct commented on Nov 22, 2026

    @calledtoconstruct
    Collaborator

    Thanks @nixfred. The ISO syntax check runs on every script, not only the first. This ships in #879.

    🤖 Generated with Grok 4.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions