From 0fea6213de86e0145707bced49ff8a07e466b96c Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Thu, 24 Feb 2022 10:17:07 -0500 Subject: [PATCH] Upgrade now handled with dialog. --- audiogame-manager.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index 624b122..b2ffe93 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -86,10 +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 - echo "There is a new version of ${0##*/} available." - echo "Do you want to update now?" - read -r continue - if [[ "${continue,,}" =~ ^y|ye|yes$ ]]; then + dialog --backtitle "Audiogame Manager" --yesno "There is a new version of ${0##*/} available.\nDo you want to update now?" -1 -1 + if [[ ${continue} -eq 0 ]]; then if [[ -w "$0" ]]; then wget --quiet -O "${filePath}" "https://stormgames.wolfe.casa/downloads/${downloadFile}" chmod +x "$0"