From 94206807ebf3d372f44c8898f6e22abbced4a7bd Mon Sep 17 00:00:00 2001 From: bryan Date: Tue, 3 Sep 2024 20:04:31 -0400 Subject: [PATCH] Fix Linux Mint codename --- installJRMC | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/installJRMC b/installJRMC index 2af9439..6273c80 100755 --- a/installJRMC +++ b/installJRMC @@ -1654,16 +1654,22 @@ update_self() { echo HERE3 + declare -p + # Compare versions and update if necessary local local_version local_version=$(extract_version "$SCRIPT_PATH") local remote_version remote_version=$(extract_version "$tmp") + echo HERE4 + [[ -z $remote_version ]] && { rm -f "$tmp"; return 1; } echo "$remote_version, $local_version" + echo HERE5 + if [[ $local_version < $remote_version ]]; then echo "Newer version of installJRMC found. Updating..." execute mv "$tmp" "$SCRIPT_PATH"