From f5b6254833f432101e4deaf7663995fd69a1a4fd Mon Sep 17 00:00:00 2001 From: Jorge Bucaran Date: Thu, 10 Dec 2020 18:56:30 +0900 Subject: [PATCH] Support FreeBSD tar requires --file - on FreeBSD to read from stdout --- fisher.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fisher.fish b/fisher.fish index 4b05285..8069419 100644 --- a/fisher.fish +++ b/fisher.fish @@ -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 --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 else echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2