Skip to content
Myr

[shellcheck] disable intentional violations via comments

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Jordan Harband · committed by Jordan Harband · parent cbeb654 · Browse files · 1 file+7 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:nvm.sh+7 added-1 removed
5 unmodified lines
6# Implemented by Tim Caswell <tim@creationix.com>7# with much bash help from Matthew Ranney89# "local" warning, quote expansion warning10# shellcheck disable=SC2039,SC201610# shellcheck disable=SC2039,SC2016,SC200111{ # this ensures the entire script is downloaded #1213NVM_SCRIPT_SOURCE="$_"1415nvm_echo() {16 command printf %s\\n "$*" 2>/dev/null || {17 nvm_echo() {18 # shellcheck disable=SC100119 \printf %s\\n "$*" # on zsh, `command printf` sometimes fails20 }21 nvm_echo "$@"22 }
12 unmodified lines
35}3637nvm_is_alias() {38 # this is intentionally not "command alias" so it works in zsh.39 # shellcheck disable=SC100140 \alias "${1-}" > /dev/null 2>&141}4243nvm_has_colors() {
29 unmodified lines
73 -e 's/-I /--server-response /' \74 -e 's/-s /-q /' \75 -e 's/-o /-O /' \76 -e 's/-C - /-c /')77 # shellcheck disable=SC208678 eval wget $ARGS79 fi80}81
28 unmodified lines
110# Auto detect the NVM_DIR when not set111if [ -z "${NVM_DIR-}" ]; then112 # shellcheck disable=SC2128113 if [ -n "${BASH_SOURCE-}" ]; then114 # shellcheck disable=SC2169115 NVM_SCRIPT_SOURCE="${BASH_SOURCE[0]}"116 fi117 # shellcheck disable=SC1001118 NVM_DIR="$(cd ${NVM_CD_FLAGS} "$(dirname "${NVM_SCRIPT_SOURCE:-$0}")" > /dev/null && \pwd)"119 export NVM_DIR120fi121unset NVM_SCRIPT_SOURCE 2> /dev/null
1546 unmodified lines
1668 elif [ "$(nvm_download -L -s -I "$NVM_NODEJS_ORG_MIRROR/node-$VERSION.tar.gz" -o - | nvm_grep '200 OK')" != '' ]; then1669 tarball="$NVM_NODEJS_ORG_MIRROR/node-$VERSION.tar.gz"1670 fi16711672 # shellcheck disable=SC20861673 if (1674 [ -n "$tarball" ] && \1675 command mkdir -p "$tmpdir" && \1676 nvm_echo "Downloading $tarball..." && \
1305 unmodified lines