parent
9afbbb72de
commit
96a9fd100a
|
@ -9,9 +9,9 @@ set -e -u
|
||||||
: "${TERMUX_PREFIX:="/data/data/com.termux/files/usr"}"
|
: "${TERMUX_PREFIX:="/data/data/com.termux/files/usr"}"
|
||||||
|
|
||||||
list_files() {
|
list_files() {
|
||||||
dpkg-deb -c "${1}" | grep -o "${TERMUX_PREFIX//./\\.}/.\+" \
|
dpkg-deb --fsys-tarfile "${1}" | tar -t | cut -b2- \
|
||||||
| sed -E 's@(.*) ->..*@\1@g;s@/$@@g' \
|
| xargs -rd\\n realpath -sm --relative-base="$TERMUX_PREFIX" -- \
|
||||||
| xargs -rd\\n realpath -sm --relative-base="$TERMUX_PREFIX" --
|
| grep -vEx '[./]|/data(/data(/com\.termux(/files)?)?)?'
|
||||||
}
|
}
|
||||||
|
|
||||||
write_sql_script() {
|
write_sql_script() {
|
||||||
|
|
Loading…
Reference in New Issue