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:
Jag Talon 2021-03-10 10:27:33 -05:00 committed by GitHub
parent 48c414fa09
commit b222175fc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -86,7 +86,7 @@ function fisher --argument-names cmd --description "A plugin manager for Fish"
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
else
echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2