Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update new fakemachine and shell escaping #446

Merged
merged 3 commits into from
Nov 11, 2023
Merged

Conversation

sjoerdsimons
Copy link
Member

Draft for now until fakemachine v0.0.7 is released

Copy link
Member

@obbardc obbardc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good.

Newer fakemachines adds shell escaping to the arguments passed into it.
Which means that the minimal escaping (by quoting) in debos ends up
actually adding quotes to the arguments as it gets escaped

Fixes #141

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
To help using variables as part of shell command add a escape template
helper function which escapes the variable properly for shell usage

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
Test both escaping variables passed into debos and the new escaping
template function

Signed-off-by: Sjoerd Simons <sjoerd@collabora.com>
@sjoerdsimons sjoerdsimons marked this pull request as ready for review November 11, 2023 08:58
@sjoerdsimons sjoerdsimons added this pull request to the merge queue Nov 11, 2023
Merged via the queue into main with commit 659acaa Nov 11, 2023
@sjoerdsimons sjoerdsimons deleted the template-var-escaping branch January 19, 2024 21:32
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.

2 participants