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>
Vasil Dimov committed
Sep 26, 2016 at 22:24 UTC
c2dca4bcea51a6116febf0c4594d8c91ac38ee60
1 file changed
+1
-1
bin/dist_get
+1
-1
@@ -52,7 +52,7 @@ unarchive() {
52
tar.gz)
53
if have_binary tar; then
54
echo "==> using 'tar' to extract binary from archive"
55
- cat "$ua_infile" | tar -O -z -x "$ua_distname/$ua_distname" > "$ua_outfile"
55
+ cat "$ua_infile" | tar -O -z -x -f - "$ua_distname/$ua_distname" > "$ua_outfile"
56
else
57
die "no binary on system for extracting tar files"
58
fi