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