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:
Vasil Dimov 2016-09-26 22:24:08 +03:00
parent 06a6e2fa74
commit c2dca4bcea
No known key found for this signature in database
GPG Key ID: 170E923FF6C1A420

View File

@ -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