No need to select one by one. (#1033)
This commit is contained in:
parent
54e541417e
commit
d4ab00856e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user