[shellcheck] add overrides
parent
db19450caa
commit
e1bb44f712
3
nvm.sh
3
nvm.sh
|
@ -3504,6 +3504,7 @@ nvm_get_default_packages() {
|
||||||
local line
|
local line
|
||||||
# ensure a trailing newline
|
# ensure a trailing newline
|
||||||
WORK=$(mktemp -d) || exit $?
|
WORK=$(mktemp -d) || exit $?
|
||||||
|
# shellcheck disable=SC2064
|
||||||
trap "rm -rf '$WORK'" EXIT
|
trap "rm -rf '$WORK'" EXIT
|
||||||
# shellcheck disable=SC1003
|
# shellcheck disable=SC1003
|
||||||
sed -e '$a\' "${NVM_DEFAULT_PACKAGE_FILE}" > "${WORK}/default-packages"
|
sed -e '$a\' "${NVM_DEFAULT_PACKAGE_FILE}" > "${WORK}/default-packages"
|
||||||
|
@ -3539,7 +3540,7 @@ nvm_install_default_packages() {
|
||||||
}
|
}
|
||||||
|
|
||||||
nvm_supports_source_options() {
|
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" ]
|
[ "_$(nvm_echo '[ $# -gt 0 ] && nvm_echo $1' | . /dev/stdin yes 2>/dev/null)" = "_yes" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue