From c2d0c0a7a4b23457d5af138cda07466272ee4687 Mon Sep 17 00:00:00 2001 From: Ohio2 Date: Fri, 27 Aug 2021 16:58:57 +0200 Subject: [PATCH] add list --- aps | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aps b/aps index 46b1498..3b68990 100755 --- a/aps +++ b/aps @@ -164,6 +164,9 @@ help(){ echo "upgrade - Upgrades from package repository." echo "remove - Removes a package from /var/aps/installed and it's install files (payloadfiles)." } +list(){ + ls ${installed_pkg_database} | sed 's/^README.md//g' +} main() { if [ -f "${lock}" ]; then echo "[E] A lock file already exists (another instance of the package manager could be running). If you're sure no package manager is running, remove the file ${lock}." @@ -184,6 +187,7 @@ main() { upgrade) upgrade "official" ;; help) help ;; version) version ;; + list) list ;; *) die "[E] Invalid option ${1}, exiting..." ;; esac rm "${lock}"