Always use deb822 sources format

This commit is contained in:
2026-01-22 17:12:03 -05:00
parent 5104de1b6d
commit 260fcaa1c0

View File

@@ -21,7 +21,7 @@
# shellcheck disable=SC2329
shopt -s extglob
declare -g SCRIPT_VERSION="1.35.9"
declare -g SCRIPT_VERSION="1.35.10-dev"
declare -g MC_VERSION_HARDCODE="35.0.37" # do find all replace
declare -g MC_REPO_HARDCODE="bookworm" # should match the MC_VERSION_HARDCODE
declare -g BOARD_ID="92.0" # MC35 board ID for fallback latest version detection
@@ -1795,8 +1795,6 @@ main() {
fi
echo "Installing repository file: $repo_file"
if [[ ($ID == "ubuntu" && $UBUNTU_CODENAME =~ ^[j-z]) ||
($ID == "debian" && ${VERSION_ID%%.*} -ge 12) ]]; then
sudo tee "$repo_file" &>/dev/null <<-EOF
Types: deb
URIs: https://dist.jriver.com/$channel/mediacenter/
@@ -1805,11 +1803,6 @@ main() {
Components: main
Architectures: amd64 armhf arm64
EOF
else
sudo tee "$repo_file" &>/dev/null <<-EOF
deb [signed-by=$keyfile arch=amd64,armhf,arm64] https://dist.jriver.com/$channel/mediacenter/ $MC_REPO main
EOF
fi
echo "Installing JRiver Media Center GPG key"
download "https://dist.jriver.com/mediacenter@jriver.com.gpg.key" "-" |