提交 0ac1fd1a 作者: Jeromy Johnson 提交者: GitHub

Merge pull request #3264 from vasild/fix/tar_command

Explicitly specify the input file to tar with "-f -"
...@@ -52,7 +52,7 @@ unarchive() { ...@@ -52,7 +52,7 @@ unarchive() {
tar.gz) tar.gz)
if have_binary tar; then if have_binary tar; then
echo "==> using 'tar' to extract binary from archive" 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 else
die "no binary on system for extracting tar files" die "no binary on system for extracting tar files"
fi fi
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论