From df0989887bacf16b0d364cc731a45942e8dbf671 Mon Sep 17 00:00:00 2001 From: bryan Date: Thu, 24 Apr 2025 16:41:50 -0400 Subject: [PATCH] Set MC_SOURCE for container download --- installJRMC | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/installJRMC b/installJRMC index d4a8254..9a54b1e 100755 --- a/installJRMC +++ b/installJRMC @@ -738,7 +738,8 @@ acquire_deb() { acquire_deb_new() { debug "${FUNCNAME[0]}()" - declare -g MC_SOURCE + declare -g MC_DEB + declare -g MC_SOURCE="https://files.jriver-cdn.com/mediacenter/channels/v$MC_MVERSION/latest/$fname" local fname mnt [[ -d $OUTPUT_DIR/SOURCES ]] || execute mkdir -p "$OUTPUT_DIR/SOURCES" @@ -751,7 +752,7 @@ acquire_deb_new() { fname="MediaCenter-$MC_VERSION-$MC_ARCH.deb" fi - declare -g MC_DEB="$OUTPUT_DIR/SOURCES/$fname" + MC_DEB="$OUTPUT_DIR/SOURCES/$fname" # If deb file already exists, skip download if [[ -f $MC_DEB ]]; then @@ -760,9 +761,6 @@ acquire_deb_new() { execute rm "$MC_DEB" else echo "Using existing DEB: $MC_DEB" - # Use dummy source since we don't know where it came from - # TODO could attach source tag to filename - MC_SOURCE="https://files.jriver-cdn.com/mediacenter/channels/v$MC_MVERSION/latest/$fname" return 0 fi fi