From a7b9bca653ab54854e1d2a7a8686ba453355e21d Mon Sep 17 00:00:00 2001 From: bryan Date: Sat, 12 Apr 2025 13:29:32 -0400 Subject: [PATCH] Allow release specifier for source DEB --- installJRMC | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/installJRMC b/installJRMC index 0a5da0c..0bb855a 100755 --- a/installJRMC +++ b/installJRMC @@ -695,7 +695,16 @@ install_mc_repo() { # @description Acquires the source DEB package from JRiver acquire_deb() { debug "Running: ${FUNCNAME[0]}" - local fname="MediaCenter-$MC_VERSION-$ARCH.deb" + local fname + + # Usually JRiver exlcudes the release number from the filename + # but in some cases (test builds) it may be included + if [[ $MC_RELEASE -gt 1 ]]; then + fname="MediaCenter-$MC_VERSION-$MC_RELEASE-$ARCH.deb" + else + fname="MediaCenter-$MC_VERSION-$ARCH.deb" + fi + declare -g MC_DEB="$OUTPUT_DIR/SOURCES/$fname" # If deb file already exists, skip download