Skip to content

Commit

Permalink
optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
leleliu008 committed Oct 2, 2024
1 parent bf1e70b commit 0bf61cf
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions ndk-pkg
Original file line number Diff line number Diff line change
Expand Up @@ -8686,13 +8686,19 @@ __setup() {

##################################################################################

TAR="$(command -v bsdtar || command -v gtar || command -v tar || true)"
XZ="$(command -v xz || true)"
BSDTAR="$(command -v bsdtar || true)"

if [ -z "$TAR" ] || [ -z "$XZ" ] ; then
wfetch 'https://github.com/leleliu008/test/releases/download/2023.10.08/bsdtar-3.7.2-linux-x86_64.exe' -o bsdtar --no-buffer
chmod +x bsdtar
TAR=./bsdtar
if [ -n "$BSDTAR" ] ; then
TAR="$BSDTAR"
else
TAR="$(command -v gtar || command -v tar || true)"
XZ="$(command -v xz || true)"

if [ -z "$TAR" ] || [ -z "$XZ" ] ; then
wfetch 'https://github.com/leleliu008/test/releases/download/2023.10.08/bsdtar-3.7.2-linux-x86_64.exe' -o bsdtar --no-buffer
chmod +x bsdtar
TAR=./bsdtar
fi
fi

##################################################################################
Expand Down

0 comments on commit 0bf61cf

Please sign in to comment.