No need to select one by one. (#1033)

This commit is contained in:
Wetitpig 2017-05-20 05:38:04 +08:00 committed by Fredrik Fornwall
parent 54e541417e
commit d4ab00856e

View File

@ -397,7 +397,7 @@ termux_step_extract_package() {
termux_download "$TERMUX_PKG_SRCURL" "$file" "$TERMUX_PKG_SHA256"
if [ "x$TERMUX_PKG_FOLDERNAME" = "x" ]; then
folder=`basename $filename .tar.bz2` && folder=`basename $folder .tar.gz` && folder=`basename $folder .tar.xz` && folder=`basename $folder .tar.lz` && folder=`basename $folder .tgz` && folder=`basename $folder .zip`
folder="${filename%%.t*}" && folder="${folder%%.zip}"
folder="${folder/_/-}" # dpkg uses _ in tar filename, but - in folder
else
folder=$TERMUX_PKG_FOLDERNAME