mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Support FreeBSD
tar requires --file - on FreeBSD to read from stdout
This commit is contained in:
parent
b4c2fcc68a
commit
f5b6254833
1 changed files with 1 additions and 1 deletions
|
@ -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
|
set --query fisher_user_api_token && set opts -u $fisher_user_api_token
|
||||||
|
|
||||||
echo -e \"Fetching \x1b[4m\$url\x1b[24m\"
|
echo -e \"Fetching \x1b[4m\$url\x1b[24m\"
|
||||||
if command curl $opts --silent --write-out \"\" \$url | tar --extract --gzip --directory \$temp 2>/dev/null
|
if command curl $opts --silent \$url | tar --extract --gzip --directory \$temp --file -
|
||||||
command cp -Rf \$temp/*/* $source
|
command cp -Rf \$temp/*/* $source
|
||||||
else
|
else
|
||||||
echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2
|
echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2
|
||||||
|
|
Loading…
Reference in a new issue