From c3046f3baa40c87402816de8164cfe8e9e81a6da Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Sun, 3 Mar 2024 00:23:36 +0100 Subject: [PATCH] fix: backup IFS --- entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 66cbaa5..b475fee 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,6 +5,8 @@ if [ "$INPUT_DEBUG" = "true" ]; then set -x fi +OLDIFS=$IFS + REGISTRY="${INPUT_REGISTRY:-"docker.io"}" IMAGE="$INPUT_IMAGE" BRANCH=$(echo "$GITHUB_REF" | sed -E "s/refs\/(heads|tags)\///g" | sed -e "s/\//-/g") @@ -74,9 +76,11 @@ crane auth login "$REGISTRY" -u "$USERNAME" -p "$PASSWORD" runKaniko() { # https://github.com/GoogleContainerTools/kaniko/issues/1803 # https://github.com/GoogleContainerTools/kaniko/issues/1349 + IFS='' kaniko_cmd="executor ${1} --reproducible --force" echo "Running kaniko command: ${kaniko_cmd}" - IFS='' eval "${kaniko_cmd}" + eval "${kaniko_cmd}" + IFS=$OLDIFS } if [ -n "$INPUT_PLATFORMS" ]; then