mirror of
https://github.com/jorgebucaran/fisher
synced 2024-06-24 22:51:49 +02:00
Use simpler curl invocation, increase verbosity
This commit is contained in:
parent
ae423be725
commit
b4c2fcc68a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue