diff options
author | nlf <quitlahok@gmail.com> | 2021-02-04 00:00:27 +0300 |
---|---|---|
committer | Ruy Adorno <ruyadorno@hotmail.com> | 2021-02-05 17:45:09 +0300 |
commit | 6d7afb03cd7602b60e709516711a2f94cd61ff25 (patch) | |
tree | 7eedcf4a55e76cc5f36bbda5584e137a1adaa162 /scripts | |
parent | df596bf4c10d6917672579cc38800f5e846002bc (diff) |
pass -q to curl calls to disable user .curlrc files
PR-URL: https://github.com/npm/cli/pull/2613
Credit: @nlf
Close: #2613
Reviewed-by: @ljharb, @wraithgar
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/install.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/install.sh b/scripts/install.sh index 4458de87f..8c0ba3de7 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -18,7 +18,7 @@ if [ "x$0" = "xsh" ]; then # which is a bit cuter. But on others, &1 is already closed, # so catting to another script file won't do anything. # Follow Location: headers, and fail on errors - curl -f -L -s https://www.npmjs.org/install.sh > npm-install-$$.sh + curl -q -f -L -s https://www.npmjs.org/install.sh > npm-install-$$.sh ret=$? if [ $ret -eq 0 ]; then (exit 0) @@ -134,7 +134,7 @@ fi # need to echo "" after, because Posix sed doesn't treat EOF # as an implied end of line. -url=`(curl -SsL https://registry.npmjs.org/npm/$t; echo "") \ +url=`(curl -qSsL https://registry.npmjs.org/npm/$t; echo "") \ | sed -e 's/^.*tarball":"//' \ | sed -e 's/".*$//'` @@ -142,7 +142,7 @@ ret=$? if [ "x$url" = "x" ]; then ret=125 # try without the -e arg to sed. - url=`(curl -SsL https://registry.npmjs.org/npm/$t; echo "") \ + url=`(curl -qSsL https://registry.npmjs.org/npm/$t; echo "") \ | sed 's/^.*tarball":"//' \ | sed 's/".*$//'` ret=$? @@ -159,7 +159,7 @@ fi echo "fetching: $url" >&2 cd "$TMP" \ - && curl -SsL -o npm.tgz "$url" \ + && curl -qSsL -o npm.tgz "$url" \ && $tar -xzf npm.tgz \ && cd "$TMP"/package \ && echo "removing existing npm" \ |