init
This commit is contained in:
parent
5a2e29e767
commit
8f98cf5a2d
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user