fix using option entrypoint in podman-run

This commit is contained in:
Nadezhda Fedorova 2024-04-10 11:38:57 +03:00
parent 3144022b95
commit 94187ff836
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ inputs:
shell:
description: 'Use a specific shell'
required: false
default: sh
default: /bin/sh
registry:
description: 'Registry'
required: false

View File

@ -8,4 +8,4 @@ if [ ! -z $INPUT_PODMAN_NETWORK ];
then INPUT_OPTIONS="$INPUT_OPTIONS --network $INPUT_PODMAN_NETWORK"
fi
exec podman run $INPUT_OPTIONS --entrypoint=$INPUT_SHELL $INPUT_IMAGE -c "${INPUT_RUN//$'\n'/;}"
exec podman run $INPUT_OPTIONS --entrypoint="$INPUT_SHELL" $INPUT_IMAGE -c "${INPUT_RUN}"