From b4c2fcc68a086e18cf4804a95045252660e9a508 Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Thu, 10 Dec 2020 02:17:51 +0900 Subject: [PATCH] Use simpler curl invocation, increase verbosity --- fisher.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fisher.fish b/fisher.fish index 3c798cf..4b05285 100644 --- a/fisher.fish +++ b/fisher.fish @@ -19,7 +19,7 @@ function fisher -a cmd -d "Fish plugin manager" case ls list string match --entire --regex -- "$argv[2]" $_fisher_plugins case install update remove - isatty || read -laz stdin && set --append argv $stdin + isatty || read --local --null --array stdin && set --append argv $stdin set --local install_plugins set --local update_plugins set --local remove_plugins @@ -90,7 +90,7 @@ function fisher -a cmd -d "Fish plugin manager" set --query fisher_user_api_token && set opts -u $fisher_user_api_token echo -e \"Fetching \x1b[4m\$url\x1b[24m\" - if command curl $opts -Ss -w \"\" \$url 2>&1 | command tar -xzf- -C \$temp 2>/dev/null + if command curl $opts --silent --write-out \"\" \$url | tar --extract --gzip --directory \$temp 2>/dev/null command cp -Rf \$temp/*/* $source else echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2