Commit abe8ac2
authored
fix: use runuser -u flag to avoid bash --command error (#49)
The previous invocation `runuser builder --command 'bash -l -c /build.sh'`
placed the username before the --command option. In su-compatible mode,
once the username is parsed, all subsequent arguments are treated as
shell arguments rather than runuser options. This caused --command to be
passed directly to bash, producing:
bash: --command: invalid option
This started failing after Arch Linux updated util-linux to a version
with stricter argument parsing in su-compatible mode.
The fix switches to the -u/--user mode which is the recommended way to
run a command as another user, with -- separating runuser options from
the command arguments.1 parent 2ac5a4c commit abe8ac2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
0 commit comments