disable SC2120 on functions with optional parameters

https://www.shellcheck.net/wiki/SC2120#exceptions
This commit is contained in:
Benjamin Elder
2022-10-20 15:36:49 -07:00
parent 239b3338e9
commit bf3df26efd
2 changed files with 2 additions and 0 deletions

View File

@@ -656,6 +656,7 @@ function kube::util::join {
# CFSSL_BIN: The path of the installed cfssl binary
# CFSSLJSON_BIN: The path of the installed cfssljson binary
#
# shellcheck disable=SC2120 # optional parameters
function kube::util::ensure-cfssl {
if command -v cfssl &>/dev/null && command -v cfssljson &>/dev/null; then
CFSSL_BIN=$(command -v cfssl)