This commit is contained in:
병준 박 2025-04-14 22:49:11 +00:00
parent 5a2e29e767
commit 8f98cf5a2d

View File

@ -75,10 +75,11 @@ spec:
fi
done
# Convert strings to arrays
set -f
IFS=' ' read -r -a kanikoFlagArray <<< "$KANIKO_FLAGS"
IFS=' ' read -r -a argumentKeyArray <<< "$ARGUMENT_KEYS"
IFS=' ' read -r -a secretKeyArray <<< "$SECRET_KEYS"
kanikoFlagArray=($KANIKO_FLAGS)
argumentKeyArray=($ARGUMENT_KEYS)
secretKeyArray=($SECRET_KEYS)
len=${#kanikoFlagArray[@]}
if [ "$len" -ne "${#argumentKeyArray[@]}" ] || [ "$len" -ne "${#secretKeyArray[@]}" ]; then