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

Fix escaping issues when generating the OCI image config files #2

Merged
merged 1 commit into from Oct 24, 2020

Conversation

sergioprado
Copy link

Some parameters are not escaping correctly the double quotes when generating the OCI image config files.

This is easily reproducible:

$ mkdir rootfs
$ ./sloci-image --arch arm --user 0 rootfs oci-image:latest
$ grep -R "User" oci-image/
oci-image/blobs/sha256/e574ac66b91453b00beb37717ed0e604249fa695ec772e17a56ff208357ec72a:    \"User\": "0",

Fix that by escaping the double quotes with an echo command.

Signed-off-by: Sergio Prado sergio.prado@e-labworks.com

Some parameters are not escaping correctly the double quotes
when generating the OCI image config files.

This is easily reproducible:

$ mkdir rootfs
$ ./sloci-image --arch arm --user 0 rootfs oci-image:latest
$ grep -R "User" oci-image/
oci-image/blobs/sha256/e574ac66b91453b00beb37717ed0e604249fa695ec772e17a56ff208357ec72a:    \"User\": "0",

Fix that by escaping the double quotes with an echo command.

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
@jirutka jirutka merged commit f2ebd0a into jirutka:master Oct 24, 2020
@sergioprado sergioprado deleted the fix-escaping-error branch October 25, 2020 08:18
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.

None yet

2 participants