fix: ignore .curlrc file when downloading plugin's tarball (#1)

When `.curlrc` contains `-O` option, curl saves file to disk instead of redirecting it to stdout. thats why tar fails at next step as there is noting to extract
This commit is contained in:
Vasyl Zuziak 2023-08-18 23:06:00 -07:00 committed by GitHub
parent 59228d6215
commit 0a999cbd9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,7 +98,7 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
echo Fetching (set_color --underline)\$url(set_color normal)
if command curl --silent -L \$url | command tar -xzC \$temp -f - 2>/dev/null
if command curl --disable --silent --location \$url | command tar -xzC \$temp -f - 2>/dev/null
command cp -Rf \$temp/*/* $source
else
echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2