Skip to content
Myr

[install] tar --no-same-owner

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Close #3776

authored by Junegunn Choi · committed by Junegunn Choi · parent cd8d736 · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:install+2 added-2 removed
113 unmodified lines
114115try_curl() {116 command -v curl > /dev/null &&117 if [[ $1 =~ tar.gz$ ]]; then118 curl -fL $1 | tar -xzf -118 curl -fL $1 | tar --no-same-owner -xzf -119 else120 local temp=${TMPDIR:-/tmp}/fzf.zip121 curl -fLo "$temp" $1 && unzip -o "$temp" && rm -f "$temp"122 fi
1 unmodified line
124125try_wget() {126 command -v wget > /dev/null &&127 if [[ $1 =~ tar.gz$ ]]; then128 wget -O - $1 | tar -xzf -128 wget -O - $1 | tar --no-same-owner -xzf -129 else130 local temp=${TMPDIR:-/tmp}/fzf.zip131 wget -O "$temp" $1 && unzip -o "$temp" && rm -f "$temp"132 fi
254 unmodified lines