mirror of
https://github.com/jorgebucaran/fisher
synced 2024-11-15 12:13:28 +00:00
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:
parent
59228d6215
commit
0a999cbd9f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user