Browse Source

Handle more tar files in root folder detection

Fixes #1548.
android-5
Fredrik Fornwall 7 years ago
parent
commit
bdd7421906
  1. 2
      build-package.sh

2
build-package.sh

@ -475,7 +475,7 @@ termux_step_extract_package() {
rm -Rf $folder
unzip -q "$file"
else
folder=`tar tf "$file" | head -1 | sed -e 's/\/.*//'`
folder=`tar tf "$file" | head -1 | sed 's/^.\///' | sed -e 's/\/.*//'`
rm -Rf $folder
tar xf "$file"
fi

Loading…
Cancel
Save