don't set $TERMUX_PREFIX, it's used once

This commit is contained in:
Lucy Phipps 2020-11-22 14:56:33 +00:00
parent 074df540d7
commit c1a702eeb7
No known key found for this signature in database
GPG Key ID: 8F688A3DB7869BFE
1 changed files with 1 additions and 3 deletions

View File

@ -6,11 +6,9 @@
set -e -u
: "${TERMUX_PREFIX:="/data/data/com.termux/files/usr"}"
list_files() {
FILES=$(dpkg-deb --fsys-tarfile "${1}" | tar -t | cut -b2- \
| xargs -rd\\n realpath -sm --relative-base="$TERMUX_PREFIX" -- \
| xargs -rd\\n realpath -sm --relative-base="/data/data/com.termux/files/usr" -- \
| grep -vEx '[./]|/data(/data(/com\.termux(/files)?)?)?')
SORTKEYS='-k1,1'
for ((x=2; x<=$(wc -L <<< "${FILES//[^\/$'\n']/}")+1; x++)); do