mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 22:17:14 +00:00
Merge pull request #116105 from thockin/codegen-15-subprojects
Fix codegen for older bash
This commit is contained in:
commit
1efc044598
@ -996,7 +996,8 @@ for arg; do
|
|||||||
print_codegens
|
print_codegens
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
codegens_to_run+=("${matches[@]}")
|
# The array-syntax abomination is to accommodate older bash.
|
||||||
|
codegens_to_run+=("${matches[@]:+"${matches[@]}"}")
|
||||||
done
|
done
|
||||||
|
|
||||||
# If no codegens were specified, run them all.
|
# If no codegens were specified, run them all.
|
||||||
@ -1005,5 +1006,6 @@ if [[ "${#codegens_to_run[@]}" == 0 ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
for g in "${codegens_to_run[@]}"; do
|
for g in "${codegens_to_run[@]}"; do
|
||||||
"codegen::${g}" "${flags_to_pass[@]}"
|
# The array-syntax abomination is to accommodate older bash.
|
||||||
|
"codegen::${g}" "${flags_to_pass[@]:+"${flags_to_pass[@]}"}"
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user