Skip to content

Commit

Permalink
Restore ability to choose to install updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mayankk2308 committed Dec 27, 2019
1 parent 56f98d0 commit e7f8c82
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions purge-wrangler.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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=""
Expand Down Expand Up @@ -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
}

Expand Down

0 comments on commit e7f8c82

Please sign in to comment.