From e1bb44f7122720f27de9f11811d21880ce639304 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Mon, 4 Feb 2019 14:45:04 -0800 Subject: [PATCH] [shellcheck] add overrides --- nvm.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index a1cc7bf..31a9296 100644 --- a/nvm.sh +++ b/nvm.sh @@ -3504,6 +3504,7 @@ nvm_get_default_packages() { local line # ensure a trailing newline WORK=$(mktemp -d) || exit $? + # shellcheck disable=SC2064 trap "rm -rf '$WORK'" EXIT # shellcheck disable=SC1003 sed -e '$a\' "${NVM_DEFAULT_PACKAGE_FILE}" > "${WORK}/default-packages" @@ -3539,7 +3540,7 @@ nvm_install_default_packages() { } nvm_supports_source_options() { - # shellcheck disable=SC1091 + # shellcheck disable=SC1091,SC2240 [ "_$(nvm_echo '[ $# -gt 0 ] && nvm_echo $1' | . /dev/stdin yes 2>/dev/null)" = "_yes" ] }