debian #1

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

View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
updateSystem() {
noconfirm=
if [[ $1 == "-y" ]]; then
noconfirm="--assume-yes"
fi
full=
if [[ $2 == "--full" ]]; then
full="full-"
fi
executeAndNotify "doUpdateSystem $noconfirm $full" "system updated" "system update failed";
}
doUpdateSystem() {
sudo apt update;
sudo apt ${2}upgrade $1;
sudo apt autoremove $1;
}