This commit is contained in:
Marc Beninca 2024-11-20 09:27:41 +01:00
parent aaa530295e
commit 04f64f68a8
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

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