diff options
author | Aaron Ball <nullspoon@oper.io> | 2017-03-04 00:28:52 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@oper.io> | 2017-03-04 00:28:52 -0700 |
commit | a27688a4595ac48b065934c7fb9dacacfa8fd8e5 (patch) | |
tree | 0f72b70bc63eeff33d1bcda1fb1ad9a7b9f37f53 | |
parent | c209f94dc31b4962b9f268de6e95066cde6f8978 (diff) | |
download | andbackup-a27688a4595ac48b065934c7fb9dacacfa8fd8e5.tar.gz andbackup-a27688a4595ac48b065934c7fb9dacacfa8fd8e5.tar.xz |
Implemented basic list package support
The currently lists all packages, system and user, sorted
alphabetically. Still needs more work to add customizable filtering (eg:
only user apps or only system).
-rwxr-xr-x | andbackup.sh | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/andbackup.sh b/andbackup.sh index 52a24cc..5ada59d 100755 --- a/andbackup.sh +++ b/andbackup.sh @@ -98,12 +98,9 @@ backup_app() { } -# function list_apps { -# cd ${userdata} -# for dir in *; do -# linfo ${dir%-*} -# done -# } +function list_apps { + pm list package | cut -d ':' -f 2 | sort +} restore_app() { |