From 36c65d7115c4cbdac9ae8e72b7062d72271a4970 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 10 May 2016 01:11:17 -0700 Subject: [PATCH] [shellcheck] add spellcheck override comments --- nvm.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nvm.sh b/nvm.sh index ce5c6b5..30c6afd 100644 --- a/nvm.sh +++ b/nvm.sh @@ -6,6 +6,8 @@ # Implemented by Tim Caswell # with much bash help from Matthew Ranney +# "local" warning, quote expansion warning +# shellcheck disable=SC2039,SC2016 { # this ensures the entire script is downloaded # NVM_SCRIPT_SOURCE="$_" @@ -100,6 +102,7 @@ fi # Auto detect the NVM_DIR when not set if [ -z "${NVM_DIR-}" ]; then + # shellcheck disable=SC2128 if [ -n "$BASH_SOURCE" ]; then NVM_SCRIPT_SOURCE="${BASH_SOURCE[0]}" fi @@ -2565,6 +2568,7 @@ $NVM_LS_REMOTE_POST_MERGED_OUTPUT" | command grep -v "N/A" | command sed '/^$/d' } nvm_supports_source_options() { + # shellcheck disable=SC1091 [ "_$(echo '[ $# -gt 0 ] && echo $1' | . /dev/stdin yes 2> /dev/null)" = "_yes" ] }