update printf
Some checks failed
run tests / run-container (push) Failing after 5s

This commit is contained in:
Ivan Schaller 2023-08-16 11:29:19 +02:00
parent ae53dad24b
commit 4a1ee59b85
Signed by: olofvndrhr
GPG key ID: 2A6BE07D99C8C205

View file

@ -10,7 +10,7 @@ env | grep -v -E "^(#|;| |PATH|SHLVL|HOSTNAME|DOCKER_*)" | awk '$1 ~ /^\w+=/' |
# login to container registry # login to container registry
if [ -n "${INPUT_USERNAME}" ]; then if [ -n "${INPUT_USERNAME}" ]; then
echo "${INPUT_PASSWORD}" | docker login "${INPUT_REGISTRY}" -u "${INPUT_USERNAME}" --password-stdin printf '%s' "${INPUT_PASSWORD}" | docker login "${INPUT_REGISTRY}" -u "${INPUT_USERNAME}" --password-stdin
fi fi
# set custom network # set custom network
@ -24,19 +24,19 @@ if [ "${INPUT_MOUNT_SOCKET,,}" == "true" ]; then
fi fi
# map volumes # map volumes
mapfile -t TMP_VOLUMES < <(printf ${INPUT_VOLUMES}) mapfile -t TMP_VOLUMES < <(printf '%b' "${INPUT_VOLUMES}")
for vol in "${TMP_VOLUMES[@]}"; do for vol in "${TMP_VOLUMES[@]}"; do
RUNTIME_OPTIONS+=(--volume "${vol}") RUNTIME_OPTIONS+=(--volume "${vol}")
done done
# get custom options # get custom options
mapfile -t TMP_OPTIONS < <(printf ${INPUT_OPTIONS}) mapfile -t TMP_OPTIONS < <(printf '%b' "${INPUT_OPTIONS}")
for opt in "${TMP_OPTIONS[@]}"; do for opt in "${TMP_OPTIONS[@]}"; do
CUSTOM_OPTIONS+=("${opt}") CUSTOM_OPTIONS+=("${opt}")
done done
# get run command # get run command
mapfile -t TMP_RUN < <(printf ${INPUT_RUN}) mapfile -t TMP_RUN < <(printf '%b' "${INPUT_RUN}")
for cmd in "${TMP_RUN[@]}"; do for cmd in "${TMP_RUN[@]}"; do
RUN_COMMAND+=("${cmd}") RUN_COMMAND+=("${cmd}")
done done