Commit d99e3b2e by Felix Abecassis

lxc-oci: fix Cmd/Entrypoint parsing

Don't use the -r option of jq, since it will strip the double quotes. Fixes: #2195 Signed-off-by: 's avatarFelix Abecassis <fabecassis@nvidia.com>
parent 5b66b6ee
...@@ -100,8 +100,8 @@ getep() { ...@@ -100,8 +100,8 @@ getep() {
configpath="$1" configpath="$1"
ep=$(jq -c -r '.config.Entrypoint[]?'< "${configpath}") ep=$(jq -c '.config.Entrypoint[]?'< "${configpath}" | tr '\n' ' ')
cmd=$(jq -c -r '.config.Cmd[]?' < "${configpath}") cmd=$(jq -c '.config.Cmd[]?'< "${configpath}" | tr '\n' ' ')
if [ -z "${ep}" ]; then if [ -z "${ep}" ]; then
ep="${cmd}" ep="${cmd}"
if [ -z "${ep}" ]; then if [ -z "${ep}" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment