debian #1

Open
fabian wants to merge 9 commits from debian into master
Showing only changes of commit e99b430ce8 - Show all commits

View File

@ -4,13 +4,18 @@
updatePackages() {
noconfirm=
if [[ $1 == "-y" ]]; then
noconfirm="--no-confirm";
noconfirm="--assume-yes"
fi
executeAndNotify "doUpdatePackages $noconfirm" "packages updated" "package update failed";
full=
if [[ $2 == "--full" ]]; then
full="full-"
fi
executeAndNotify "doUpdatePackages $noconfirm $full" "system updated" "system update failed";
}
doUpdatePackages() {
pamac update $1;
pamac remove --orphans --cascade $1;
sudo apt update;
sudo apt ${2}upgrade $1;
sudo apt autoremove $1;
}