Skip to content

fix: bash: --command: invalid option - #51

Merged
KSXGitHub merged 2 commits into
masterfrom
copilot/fix-bash-invalid-option-command
Apr 18, 2026
Merged

KSXGitHub merged 2 commits into
masterfrom
copilot/fix-bash-invalid-option-command

Conversation

Copilot AI commented Apr 18, 2026 •

Copy link
Copy Markdown
Contributor

Newer versions of util-linux's runuser on Arch Linux translate -c to its long form --command when invoking the target process — even for arguments appearing after --. Since bash only recognizes -c (not --command), this breaks the action entirely.

Change

  • entrypoint.sh: Remove -c from the bash invocation. /build.sh is a script file, not an inline command string, so it should be passed directly as a positional argument.
# Before
exec runuser -u builder -- bash -l -c /build.sh

# After
exec runuser -u builder -- bash -l /build.sh

Copilot AI linked an issue Apr 18, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Fix bash invalid option --command error during publish to AUR Fix bash: --command: invalid option error in entrypoint Apr 18, 2026
Copilot AI requested a review from KSXGitHub April 18, 2026 10:45
@KSXGitHub
KSXGitHub requested a review from Copilot April 18, 2026 14:23

Copilot AI 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

Fixes a compatibility issue where newer util-linux runuser versions can rewrite bash -c into bash --command, which bash doesn’t support, breaking the container action entrypoint on Arch Linux.

Changes:

  • Update entrypoint.sh to invoke /build.sh as a script argument to bash -l (removing -c).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@KSXGitHub KSXGitHub changed the title Fix bash: --command: invalid option error in entrypoint fix: bash: --command: invalid option Apr 18, 2026
@KSXGitHub
KSXGitHub marked this pull request as ready for review April 18, 2026 14:27
@KSXGitHub
KSXGitHub merged commit da03e16 into master Apr 18, 2026
4 checks passed
@KSXGitHub
KSXGitHub deleted the copilot/fix-bash-invalid-option-command branch April 18, 2026 14:27
0xnullsect0r added a commit to 0xnullsect0r/ProtonDrive-Linux that referenced this pull request May 1, 2026
Fixes the 'bash: --command: invalid option' error caused by a runuser
bug in newer Arch base images. Upstream fix: KSXGitHub/github-actions-deploy-aur#51

Co-authored-by: Copilot <[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.

Bash Invalid Option --command

3 participants