1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-25 11:20:01 +00:00

fix(install): ignore tarfile ownership values when installing as root (#4046)

This commit is contained in:
David Cantrell 2022-06-05 17:56:58 +01:00 committed by GitHub
parent 146976351e
commit 1a91510bed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -111,7 +111,7 @@ unpack() {
case "$archive" in
*.tar.gz)
flags=$(test -n "${VERBOSE-}" && echo "-xzvf" || echo "-xzf")
flags=$(test -n "${VERBOSE-}" && echo "-xzvof" || echo "-xzof")
${sudo} tar "${flags}" "${archive}" -C "${bin_dir}"
return 0
;;