- minor semantic changes (semicolons at the end of the line)

- added convenient updateSystem command
This commit is contained in:
2023-07-06 12:51:55 +02:00
parent 8358af1077
commit ba623040b9
3 changed files with 38 additions and 12 deletions

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
updatePackages() {
noconfirm=
if [[ $1 == "-y" ]]; then
noconfirm="--no-confirm";
fi
executeAndNotify "doUpdatePackages $noconfirm" "packages updated" "package update failed";
}
doUpdatePackages() {
pamac update $1;
pamac remove --orphans --cascade $1;
}