Repository navigation
fix: bash: --command: invalid option - #51
Merged
Merged
Conversation
…mmand error Agent-Logs-Url: https://github.com/KSXGitHub/github-actions-deploy-aur/sessions/3ef5a443-11f3-4b35-8d14-bdf200ce5082 Co-authored-by: KSXGitHub <[email protected]>
Copilot
AI
changed the title
[WIP] Fix bash invalid option --command error during publish to AUR
Fix Apr 18, 2026
bash: --command: invalid option error in entrypoint
There was a problem hiding this comment.
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.shto invoke/build.shas a script argument tobash -l(removing-c).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
bash: --command: invalid option error in entrypointbash: --command: invalid option
KSXGitHub
marked this pull request as ready for review
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]>
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Newer versions of
util-linux'srunuseron Arch Linux translate-cto its long form--commandwhen 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-cfrom the bash invocation./build.shis a script file, not an inline command string, so it should be passed directly as a positional argument.