From 2c53ec9f4116742bb095a1cded54c5c6674bf01a Mon Sep 17 00:00:00 2001 From: bryan Date: Mon, 4 Nov 2024 10:56:20 -0500 Subject: [PATCH] Fix download argument ordering --- installJRMC | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installJRMC b/installJRMC index 3990bc5..0439522 100755 --- a/installJRMC +++ b/installJRMC @@ -663,7 +663,7 @@ acquire_deb() { # Loop through the repositories and attempt to download for repo in "${repos[@]}"; do echo "Checking $repo for DEB package" - if execute download "$MC_DEB" "$repo"; then + if execute download "$repo" "$MC_DEB"; then echo "Found" break fi @@ -1474,7 +1474,7 @@ uninstall() { unset f done - echo "Removing repo files" + echo "Removing MC repositories" execute sudo rm -rf \ "/etc/yum.repos.d/jriver.repo" \ /etc/apt/sources.list.d/{jriver,mediacenter}*.{list,sources} # also remove legacy repo files @@ -1557,7 +1557,7 @@ update() { local tmp; tmp=$(mktemp) # Acquire latest version - download "$tmp" "$script_url" || return 1 + download "$script_url" "$tmp" || return 1 # Get latest version number local remote_version