mirror of
https://github.com/jorgebucaran/fisher
synced 2024-10-09 09:36:53 +02:00
Use short-option style for tar (#665)
OpenBSD's tar doesn't support long options. Short options ensure compatibility with OpenBSD systems.
This commit is contained in:
parent
48c414fa09
commit
b222175fc8
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
|
||||||
|
|
||||||
echo Fetching (set_color --underline)\$url(set_color normal)
|
echo Fetching (set_color --underline)\$url(set_color normal)
|
||||||
|
|
||||||
if curl --silent \$url | tar --extract --gzip --directory \$temp --file - 2>/dev/null
|
if curl --silent \$url | tar -xzC \$temp -f - 2>/dev/null
|
||||||
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