mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-07 00:42:51 +00:00
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: Felix Abecassis <fabecassis@nvidia.com>
This commit is contained in:
parent
5b66b6ee3e
commit
d99e3b2ea7
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user