Skip to content
Myr

[Fix] Add local for sanitized_header

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

authored by Elan Ruusamäe · committed by Jordan Harband · parent 790ffd2 · Browse files · 1 file+1 added−0 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+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:nvm.sh+1 added
117 unmodified lines
118nvm_download() {119 if nvm_has "curl"; then120 local CURL_COMPRESSED_FLAG=""121 local CURL_HEADER_FLAG=""122 local sanitized_header123124 if [ -n "${NVM_AUTH_HEADER:-}" ]; then125 sanitized_header=$(nvm_sanitize_auth_header "${NVM_AUTH_HEADER}")126 CURL_HEADER_FLAG="--header \"Authorization: ${sanitized_header}\""
4699 unmodified lines