From c97852de088fe156323eef7ff25ed657646821e8 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 24 Feb 2022 10:31:48 -0500 Subject: [PATCH] Fix that bug for real this time. --- audiogame-manager.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 2f16795..d89d75c 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -86,8 +86,8 @@ update() { if [[ "$(wget --quiet -O - https://stormgames.wolfe.casa/downloads/${downloadFile} | sha256sum | cut -d ' ' -f1)" == "$(sha256sum "${filePath}" | cut -d ' ' -f1)" ]]; then return fi - 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 + dialog --backtitle "Audiogame Manager" --yesno "There is a new version of ${0##*/} available.\nDo you want to update now?" -1 -1 + if [[ ${?} -eq 0 ]]; then if [[ -w "$0" ]]; then wget --quiet -O "${filePath}" "https://stormgames.wolfe.casa/downloads/${downloadFile}" chmod +x "$0"