Add user config and add sources file. #10

Merged
hippoz merged 6 commits from Ohio2/aps:master into master 2021-08-29 10:26:44 +03:00
Showing only changes of commit c2d0c0a7a4 - Show all commits

4
aps
View file

@ -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}"