now the database won't have a ton of '.' entries
This commit is contained in:
Lucy Phipps 2020-11-21 22:47:59 +00:00 committed by GitHub
parent 78b19eef01
commit c9eb4d70a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ set -e -u
: "${TERMUX_PREFIX:="/data/data/com.termux/files/usr"}"
list_files() {
dpkg-deb -c "${1}" | grep -o "/data/data/com\.termux/files/.\+" \
dpkg-deb -c "${1}" | grep -o "${TERMUX_PREFIX//./\\.}/.\+" \
| sed -E 's@(.*) ->..*@\1@g;s@/$@@g' \
| xargs -rd\\n realpath -sm --relative-base="$TERMUX_PREFIX" --
}