diff options
author | Aaron Ball <nullspoon@oper.io> | 2018-07-07 00:38:57 -0600 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2018-07-07 00:38:57 -0600 |
commit | 1cf5d1de084b9778b5dea30ceae2e88c36fd898a (patch) | |
tree | 2b09cc529f9d889b15a814ed50d4abf669a5707f | |
parent | 66c35a714b1c2dc17b740643a5813471b7fdaaa9 (diff) | |
parent | d62372d41c04998165104b8ad068beddf8f29b74 (diff) | |
download | andbackup-1cf5d1de084b9778b5dea30ceae2e88c36fd898a.tar.gz andbackup-1cf5d1de084b9778b5dea30ceae2e88c36fd898a.tar.xz |
-rwxr-xr-x | andbackup.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/andbackup.sh b/andbackup.sh index 4296973..6232fe2 100755 --- a/andbackup.sh +++ b/andbackup.sh @@ -174,7 +174,9 @@ backup_app() { list_apps() { - pm list package | cut -d ':' -f 2 | sort + for i in $(ls /data/app); do + printf "%s\n" "${i%-*}" + done } |