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 fi
done done
# Convert strings to arrays
set -f set -f
IFS=' ' read -r -a kanikoFlagArray <<< "$KANIKO_FLAGS" kanikoFlagArray=($KANIKO_FLAGS)
IFS=' ' read -r -a argumentKeyArray <<< "$ARGUMENT_KEYS" argumentKeyArray=($ARGUMENT_KEYS)
IFS=' ' read -r -a secretKeyArray <<< "$SECRET_KEYS" secretKeyArray=($SECRET_KEYS)
len=${#kanikoFlagArray[@]} len=${#kanikoFlagArray[@]}
if [ "$len" -ne "${#argumentKeyArray[@]}" ] || [ "$len" -ne "${#secretKeyArray[@]}" ]; then if [ "$len" -ne "${#argumentKeyArray[@]}" ] || [ "$len" -ne "${#secretKeyArray[@]}" ]; then