fix(k01): avoid set -e exit on arithmetic post-increment in apply-infra
build-and-push-harbor / docker-build-push (push) Waiting to run

This commit is contained in:
zetaloop
2026-05-06 03:52:41 +08:00
parent 8dac0b8d76
commit bc8c5ad152
+2 -2
View File
@@ -11,7 +11,7 @@ apply_docs() {
while IFS= read -r line; do while IFS= read -r line; do
if [[ "$line" == "---" ]]; then if [[ "$line" == "---" ]]; then
printf '%s\n' "$buf" | kubectl apply -f - printf '%s\n' "$buf" | kubectl apply -f -
((i++)) i=$((i+1))
echo " ($i) applied" echo " ($i) applied"
buf="" buf=""
else else
@@ -20,7 +20,7 @@ apply_docs() {
fi fi
done < "$file" done < "$file"
printf '%s\n' "$buf" | kubectl apply -f - printf '%s\n' "$buf" | kubectl apply -f -
((i++)) i=$((i+1))
echo " ($i) applied" echo " ($i) applied"
if [ -n "$kind" ]; then if [ -n "$kind" ]; then