twrp-apps-data-restore-tool/1_create_packages_list.sh

17 lines
410 B
Bash
Raw Normal View History

2021-04-08 14:38:09 +02:00
#!/bin/bash -e
basedir="$PWD"
2021-07-31 19:32:54 +02:00
echo "Found main user"
ls "$basedir/work/data/data/" --format single-column --indicator-style none > "$basedir/work/packages_list_0.txt"
2021-04-08 14:38:09 +02:00
cd work/data/user
for USERID in *; do
2021-07-31 19:32:54 +02:00
if [ -d "${USERID}" ]; then
echo "Found user ${USERID}"
ls "$basedir/work/data/user/$USERID/" --format single-column --indicator-style none > "$basedir/work/packages_list_${USERID}.txt"
fi
2021-04-08 14:38:09 +02:00
done