10 lines
176 B
Bash
10 lines
176 B
Bash
updateSystem() {
|
|
noconfirm=
|
|
if [[ $1 == "-y" ]]; then
|
|
noconfirm="-y"
|
|
fi
|
|
sudo apt update;
|
|
sudo apt upgrade $noconfirm;
|
|
sudo apt autoremove $noconfirm;
|
|
}
|