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:
parent
414322206e
commit
40e2557a2d
2
bin/n
2
bin/n
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user