[Fix] sanitize NVM_AUTH_HEADER in wget path
This commit is contained in:
1 parent
242d997da5
commit
44e2590cdf
2 files changed
+67
-1
No files matched your search
@@ -149,7 +149,8 @@ nvm_download() {
|
||||
")
|
||||
|
||||
if [ -n "${NVM_AUTH_HEADER:-}" ]; then
|
||||
ARGS="${ARGS} --header \"${NVM_AUTH_HEADER}\""
|
||||
sanitized_header=$(nvm_sanitize_auth_header "${NVM_AUTH_HEADER}")
|
||||
ARGS="${ARGS} --header \"${sanitized_header}\""
|
||||
fi
|
||||
# shellcheck disable=SC2086
|
||||
eval wget $ARGS
|
||||
|
||||
Reference in new issue
Block a user