From cc7e1cafb449177a5343a46dba1bc61366557f4d Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 11 Nov 2024 20:40:56 +0100 Subject: [PATCH] apt_upgrade --- bash/apt.sh | 9 ++++++++- bash/rescue.sh | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/bash/apt.sh b/bash/apt.sh index 36bd5d6..ce43f1a 100644 --- a/bash/apt.sh +++ b/bash/apt.sh @@ -1,3 +1,10 @@ apt_clean() { - apt-get clean + apt-get \ + clean +} + +apt_upgrade() { + apt-get \ + upgrade \ + --assume-yes } diff --git a/bash/rescue.sh b/bash/rescue.sh index 05ecac8..34f1881 100644 --- a/bash/rescue.sh +++ b/bash/rescue.sh @@ -72,7 +72,7 @@ rescue_install() { # disable frontend debian_disable_frontend # upgrade packages - apt-get upgrade --assume-yes + apt_upgrade # clean cache apt_clean # install packages