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" }