Compare commits
No commits in common. "d8e73040bc639b805196c7cbed34ff23824e6e31" and "e99b430ce8fa40a0d4f52982065232e4a9f56f6a" have entirely different histories.
d8e73040bc
...
e99b430ce8
@ -1,20 +0,0 @@
|
||||
#!/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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user