mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-09 10:18:04 +08:00
Explicitly specify the input file to tar with "-f -"
On FreeBSD the default one (if no -f is specified) is /dev/sa0, not stdin. License: MIT Signed-off-by: Vasil Dimov <vd@FreeBSD.org>
This commit is contained in:
parent
06a6e2fa74
commit
c2dca4bcea
@ -52,7 +52,7 @@ unarchive() {
|
||||
tar.gz)
|
||||
if have_binary tar; then
|
||||
echo "==> using 'tar' to extract binary from archive"
|
||||
cat "$ua_infile" | tar -O -z -x "$ua_distname/$ua_distname" > "$ua_outfile"
|
||||
cat "$ua_infile" | tar -O -z -x -f - "$ua_distname/$ua_distname" > "$ua_outfile"
|
||||
else
|
||||
die "no binary on system for extracting tar files"
|
||||
fi
|
||||
|
||||
Loading…
Reference in New Issue
Block a user