From ed511d78678e97d0a43765d655f27a139da72d82 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Tue, 7 May 2024 20:00:13 +0900 Subject: [PATCH] [install] tar --no-same-owner Close #3776 --- install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install b/install index c05cfbef..8d017152 100755 --- a/install +++ b/install @@ -115,7 +115,7 @@ link_fzf_in_path() { try_curl() { command -v curl > /dev/null && if [[ $1 =~ tar.gz$ ]]; then - curl -fL $1 | tar -xzf - + curl -fL $1 | tar --no-same-owner -xzf - else local temp=${TMPDIR:-/tmp}/fzf.zip curl -fLo "$temp" $1 && unzip -o "$temp" && rm -f "$temp" @@ -125,7 +125,7 @@ try_curl() { try_wget() { command -v wget > /dev/null && if [[ $1 =~ tar.gz$ ]]; then - wget -O - $1 | tar -xzf - + wget -O - $1 | tar --no-same-owner -xzf - else local temp=${TMPDIR:-/tmp}/fzf.zip wget -O "$temp" $1 && unzip -o "$temp" && rm -f "$temp"