Skip to content

fix: split mount prefixes with trailing space into separate arguments - #48

Merged
markhedleyjones merged 1 commit into
mainfrom
fix/mount-prefix-splitting
Mar 25, 2026
Merged

fix: split mount prefixes with trailing space into separate arguments#48
markhedleyjones merged 1 commit into
mainfrom
fix/mount-prefix-splitting

Conversation

@markhedleyjones

Copy link
Copy Markdown
Owner

Mount prefixes like "--data " were concatenated with the container path into a single string, then quoted by shlex.join as one argument. Scripts using argparse would receive "--data /mnt/data/file.pdf" as a single token instead of two separate arguments.

Split on trailing whitespace to match the existing run.sh.j2 behaviour. Prefixes without trailing whitespace (e.g. "--data=") are still concatenated as a single argument.

Mount prefixes like "--data " were concatenated with the container path
into a single string, then quoted by shlex.join as one argument. Scripts
using argparse would receive "--data /mnt/data/file.pdf" as a single
token instead of two separate arguments.

Split on trailing whitespace to match the existing run.sh.j2 behaviour.
Prefixes without trailing whitespace (e.g. "--data=") are still
concatenated as a single argument.
@markhedleyjones
markhedleyjones merged commit 8e7afe4 into main Mar 25, 2026
8 checks passed
@markhedleyjones
markhedleyjones deleted the fix/mount-prefix-splitting branch March 25, 2026 09:51
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