forked from alnux/aps
add list
This commit is contained in:
parent
cb46751b92
commit
c2d0c0a7a4
1 changed files with 4 additions and 0 deletions
4
aps
4
aps
|
@ -164,6 +164,9 @@ help(){
|
||||||
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)."
|
||||||
}
|
}
|
||||||
|
list(){
|
||||||
|
ls ${installed_pkg_database} | sed 's/^README.md//g'
|
||||||
|
}
|
||||||
main() {
|
main() {
|
||||||
if [ -f "${lock}" ]; then
|
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}."
|
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" ;;
|
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}"
|
||||||
|
|
Loading…
Reference in a new issue