diff --git a/installJRMC b/installJRMC index 69d3e04..b39e525 100755 --- a/installJRMC +++ b/installJRMC @@ -1654,10 +1654,10 @@ update_self() { local remote_version remote_version=$(extract_version "$tmp") - debug HERE - [[ -z $remote_version ]] && { rm -f "$tmp"; return 1; } + echo "$remote_version, $local_version" + if [[ $local_version < $remote_version ]]; then echo "Newer version of installJRMC found. Updating..." execute mv "$tmp" "$SCRIPT_PATH"