diff --git a/purge-wrangler.sh b/purge-wrangler.sh index 873089e..0d920a3 100755 --- a/purge-wrangler.sh +++ b/purge-wrangler.sh @@ -3,7 +3,7 @@ # purge-wrangler.sh # Author(s): Mayank Kumar (mayankk2308, github.com / mac_editor, egpu.io) # License: Specified in LICENSE.md. -# Version: 6.2.1 +# Version: 6.2.2 # ----- ENVIRONMENT @@ -32,7 +32,7 @@ is_bin_call=0 call_script_file="" # Script version -script_major_ver="6" && script_minor_ver="2" && script_patch_ver="1" +script_major_ver="6" && script_minor_ver="2" && script_patch_ver="2" script_ver="${script_major_ver}.${script_minor_ver}.${script_patch_ver}" latest_script_data="" latest_release_dwld="" @@ -311,8 +311,8 @@ fetch_latest_release() { if [[ $latest_major_ver > $script_major_ver || ($latest_major_ver == $script_major_ver && $latest_minor_ver > $script_minor_ver)\ || ($latest_major_ver == $script_major_ver && $latest_minor_ver == $script_minor_ver && $latest_patch_ver > $script_patch_ver) && ! -z "${latest_release_dwld}" ]] then - printfn "${mark}${gap}${bold}Software Update${normal}\n\nSoftware updates are available.\n\nOn Your System ${bold}${script_ver}${normal}\nLatest Available ${bold}${latest_release_ver}${normal}\n" - perform_software_update + printfn "${mark}${gap}${bold}Software Update${normal}\n\nSoftware updates are available.\n\nOn Your System ${bold}${script_ver}${normal}\nLatest Available ${bold}${latest_release_ver}${normal}" + yesno_action "${bold}Update now?${normal}" "perform_software_update" "echo \"${bold}Proceeding without updating...${normal}\" && sleep 0.4" fi }