From 7c8f2d8f4963d1c2e09b03a298593f0b565fc06a Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 11 Nov 2024 20:42:37 +0100 Subject: [PATCH] apt_update --- bash/apt.sh | 5 +++++ bash/rescue.sh | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bash/apt.sh b/bash/apt.sh index ce43f1a..5b821e2 100644 --- a/bash/apt.sh +++ b/bash/apt.sh @@ -3,6 +3,11 @@ apt_clean() { clean } +apt_update() { + apt-get \ + update +} + apt_upgrade() { apt-get \ upgrade \ diff --git a/bash/rescue.sh b/bash/rescue.sh index 34f1881..1d64d59 100644 --- a/bash/rescue.sh +++ b/bash/rescue.sh @@ -38,7 +38,7 @@ fr_FR.UTF-8 UTF-8 # generate locales locale-gen # update catalog - apt-get update + apt_update # disable frontend debian_disable_frontend # install backports @@ -61,14 +61,14 @@ fr_FR.UTF-8 UTF-8 apt_clean done # update catalog - apt-get update + apt_update } rescue_install() { local package local release="bookworm" # update catalog - apt-get update + apt_update # disable frontend debian_disable_frontend # upgrade packages