new function to update debian based systems
This commit is contained in:
parent
d84d9e6933
commit
452fd7600d
@ -0,0 +1,9 @@
|
||||
updateSystem() {
|
||||
noconfirm=
|
||||
if [[ $1 == "-y" ]]; then
|
||||
noconfirm="-y"
|
||||
fi
|
||||
sudo apt update;
|
||||
sudo apt upgrade $noconfirm;
|
||||
sudo apt autoremove $noconfirm;
|
||||
}
|
Loading…
Reference in New Issue
Block a user