From e139ac77580ff1217515c39760471b2ad84bc452 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 11 Nov 2024 20:37:25 +0100 Subject: [PATCH] apt_clean --- bash/apt.sh | 4 ++-- bash/rescue.sh | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bash/apt.sh b/bash/apt.sh index e83ccc1..36bd5d6 100644 --- a/bash/apt.sh +++ b/bash/apt.sh @@ -1,3 +1,3 @@ -function apt_clean_cache { - apt-get clean +apt_clean() { + apt-get clean } diff --git a/bash/rescue.sh b/bash/rescue.sh index beee576..05ecac8 100644 --- a/bash/rescue.sh +++ b/bash/rescue.sh @@ -49,7 +49,7 @@ fr_FR.UTF-8 UTF-8 apt-get install --assume-yes \ --target-release "${release}-backports" \ "${package}" - apt_clean_cache + apt_clean done # install packages set "apt-file" "mosh" "screen" "byobu" @@ -58,7 +58,7 @@ fr_FR.UTF-8 UTF-8 echo "${package}" apt-get install --assume-yes \ "${package}" - apt_clean_cache + apt_clean done # update catalog apt-get update @@ -74,7 +74,7 @@ rescue_install() { # upgrade packages apt-get upgrade --assume-yes # clean cache - apt_clean_cache + apt_clean # install packages set \ "man-db" \ @@ -89,7 +89,7 @@ rescue_install() { echo "${package}" apt-get install --assume-yes \ "${package}" - apt_clean_cache + apt_clean done # install backports set \ @@ -102,7 +102,7 @@ rescue_install() { apt-get install --assume-yes \ --target-release "${release}-backports" \ "${package}" - apt_clean_cache + apt_clean done }