From 452fd7600db17d1d6d8a27387d371ce7cf8750f9 Mon Sep 17 00:00:00 2001 From: fabian Date: Wed, 31 May 2023 10:55:35 +0200 Subject: [PATCH] new function to update debian based systems --- home_external/.bash_aliases_extra | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/home_external/.bash_aliases_extra b/home_external/.bash_aliases_extra index e69de29..799fcb5 100644 --- a/home_external/.bash_aliases_extra +++ b/home_external/.bash_aliases_extra @@ -0,0 +1,9 @@ +updateSystem() { + noconfirm= + if [[ $1 == "-y" ]]; then + noconfirm="-y" + fi + sudo apt update; + sudo apt upgrade $noconfirm; + sudo apt autoremove $noconfirm; +}