new function to update debian based systems

This commit is contained in:
fabian 2023-05-31 10:55:35 +02:00
parent d84d9e6933
commit 452fd7600d

View File

@ -0,0 +1,9 @@
updateSystem() {
noconfirm=
if [[ $1 == "-y" ]]; then
noconfirm="-y"
fi
sudo apt update;
sudo apt upgrade $noconfirm;
sudo apt autoremove $noconfirm;
}