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

@ -150,6 +150,7 @@ kube::build::get_docker_wrapped_binaries() {
# KUBE_RSYNC_CONTAINER_NAME
# DOCKER_MOUNT_ARGS
# LOCAL_OUTPUT_BUILD_CONTEXT
# shellcheck disable=SC2120 # optional parameters
function kube::build::verify_prereqs() {
local -r require_docker=${1:-true}
kube::log::status "Verifying Prerequisites...."

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)