From 04f64f68a87f18c6ddadbc9cb4c364faf7a5ee86 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Wed, 20 Nov 2024 09:27:41 +0100 Subject: [PATCH] debian --- sh/debian.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sh/debian.sh b/sh/debian.sh index 39639b9..b544f08 100644 --- a/sh/debian.sh +++ b/sh/debian.sh @@ -1,4 +1,4 @@ -DEBIAN_CODENAME="$( +SH_DEBIAN_CODENAME="$( grep "VERSION_CODENAME" "/etc/os-release" | cut --delimiter "=" --fields "2" )" @@ -23,11 +23,11 @@ Dpkg::Progress True; } sh_apt_install_backports() { - sh_apt_install_target "${DEBIAN_CODENAME}-backports" "${@}" + sh_apt_install_target "${SH_DEBIAN_CODENAME}-backports" "${@}" } sh_apt_install_release() { - sh_apt_install_target "${DEBIAN_CODENAME}" "${@}" + sh_apt_install_target "${SH_DEBIAN_CODENAME}" "${@}" } sh_apt_install_target() { @@ -49,13 +49,13 @@ sh_apt_install_target() { sh_apt_sources_write() { printf "%s" "\ deb https://deb.debian.org/debian \ -${DEBIAN_CODENAME} main non-free-firmware contrib non-free +${SH_DEBIAN_CODENAME} main non-free-firmware contrib non-free deb https://deb.debian.org/debian \ -${DEBIAN_CODENAME}-backports main non-free-firmware contrib non-free +${SH_DEBIAN_CODENAME}-backports main non-free-firmware contrib non-free deb https://deb.debian.org/debian \ -${DEBIAN_CODENAME}-updates main non-free-firmware contrib non-free +${SH_DEBIAN_CODENAME}-updates main non-free-firmware contrib non-free deb https://deb.debian.org/debian-security \ -${DEBIAN_CODENAME}-security main non-free-firmware contrib non-free +${SH_DEBIAN_CODENAME}-security main non-free-firmware contrib non-free " >"/etc/apt/sources.list" }