Skip to content

Commit

Permalink
Merge pull request #3264 from vasild/fix/tar_command
Browse files Browse the repository at this point in the history
Explicitly specify the input file to tar with "-f -"
  • Loading branch information
whyrusleeping committed Sep 28, 2016
2 parents abe44b8 + c2dca4b commit 0ac1fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/dist_get
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0ac1fd1

Please sign in to comment.