0
0
mirror of https://github.com/tj/n.git synced 2024-11-24 19:46:56 +01:00

Explicitly tell tar to read from stdin (#697)

This commit is contained in:
John Gee 2021-12-04 13:30:09 +13:00 committed by GitHub
parent 414322206e
commit 40e2557a2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
bin/n
View File

@ -789,7 +789,7 @@ install() {
cd "${dir}" || abort "Failed to cd to ${dir}"
log fetch "$url"
do_get "${url}" | tar "$tarflag" --strip-components=1 --no-same-owner
do_get "${url}" | tar "$tarflag" --strip-components=1 --no-same-owner -f -
if [[ "${PIPESTATUS[0]}" -ne 0 ]]; then
abort "failed to download archive for $version"
fi