Fix a bug with updating happening even though you pick no.

This commit is contained in:
Storm Dragon 2022-02-24 10:28:01 -05:00
parent 0fea6213de
commit b8ca36baf5

View File

@ -86,7 +86,7 @@ update() {
if [[ "$(wget --quiet -O - https://stormgames.wolfe.casa/downloads/${downloadFile} | sha256sum | cut -d ' ' -f1)" == "$(sha256sum "${filePath}" | cut -d ' ' -f1)" ]]; then if [[ "$(wget --quiet -O - https://stormgames.wolfe.casa/downloads/${downloadFile} | sha256sum | cut -d ' ' -f1)" == "$(sha256sum "${filePath}" | cut -d ' ' -f1)" ]]; then
return return
fi fi
dialog --backtitle "Audiogame Manager" --yesno "There is a new version of ${0##*/} available.\nDo you want to update now?" -1 -1 dialog --backtitle "Audiogame Manager" --yesno "There is a new version of ${0##*/} available.\nDo you want to update now?" -1 -1 --stdout
if [[ ${continue} -eq 0 ]]; then if [[ ${continue} -eq 0 ]]; then
if [[ -w "$0" ]]; then if [[ -w "$0" ]]; then
wget --quiet -O "${filePath}" "https://stormgames.wolfe.casa/downloads/${downloadFile}" wget --quiet -O "${filePath}" "https://stormgames.wolfe.casa/downloads/${downloadFile}"