From 8047269971783bc09463911e2c7841168254248e Mon Sep 17 00:00:00 2001 From: bryan Date: Tue, 3 Sep 2024 19:54:57 -0400 Subject: [PATCH] Fix Linux Mint codename --- installJRMC | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/installJRMC b/installJRMC index 009843d..69d3e04 100755 --- a/installJRMC +++ b/installJRMC @@ -1641,9 +1641,9 @@ update_self() { # Download the latest version of the script install_package --silent wget if command -v wget &>/dev/null; then - wget -q -O "$tmp" "$script_url" + execute wget -q -O "$tmp" "$script_url" elif command -v curl &>/dev/null; then - curl -s -L -o "$tmp" "$script_url" + execute curl -s -L -o "$tmp" "$script_url" else return 1 fi @@ -1654,6 +1654,8 @@ update_self() { local remote_version remote_version=$(extract_version "$tmp") + debug HERE + [[ -z $remote_version ]] && { rm -f "$tmp"; return 1; } if [[ $local_version < $remote_version ]]; then