Compare commits

...

2 commits

Author SHA1 Message Date
Ohio2
2200e5bac6 APS update 2021-08-28 05:24:55 +02:00
Ohio2
c2d0c0a7a4 add list 2021-08-27 16:58:57 +02:00

9
aps
View file

@ -162,7 +162,13 @@ help(){
echo "sync - Synchronizes from package repository." echo "sync - Synchronizes from package repository."
echo "install - Installs from local package information file and build file." echo "install - Installs from local package information file and build file."
echo "upgrade - Upgrades from package repository." echo "upgrade - Upgrades from package repository."
echo "remove - Removes a package from /var/aps/installed and it's install files (payloadfiles)." echo "remove - Removes a package from /var/aps/installed and it's install files (payloadfiles)."
echo "list - Lists currently installed packages."
echo "help - Display this message."
echo "version - Display the version."
}
list(){
ls ${installed_pkg_database} | sed 's/^README.md//g'
} }
main() { main() {
if [ -f "${lock}" ]; then if [ -f "${lock}" ]; then
@ -184,6 +190,7 @@ main() {
upgrade) upgrade "official" ;; upgrade) upgrade "official" ;;
help) help ;; help) help ;;
version) version ;; version) version ;;
list) list ;;
*) die "[E] Invalid option ${1}, exiting..." ;; *) die "[E] Invalid option ${1}, exiting..." ;;
esac esac
rm "${lock}" rm "${lock}"