From 0a999cbd9f9f810e9214caa31e1933c8b51fd59f Mon Sep 17 00:00:00 2001 From: Vasyl Zuziak Date: Fri, 18 Aug 2023 23:06:00 -0700 Subject: [PATCH] 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 --- functions/fisher.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/fisher.fish b/functions/fisher.fish index 833b9db..9c13759 100644 --- a/functions/fisher.fish +++ b/functions/fisher.fish @@ -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