From fe4d80ad9b83d4d2166a7544e27e8900411e8059 Mon Sep 17 00:00:00 2001 From: aclist Date: Wed, 10 May 2023 17:01:11 +0900 Subject: [PATCH] fix: allow manual path discovery (#65) --- changelog.md | 4 ++++ dzgui.sh | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/changelog.md b/changelog.md index 2769bce..aebbccd 100644 --- a/changelog.md +++ b/changelog.md @@ -6,6 +6,10 @@ - Custom query API - Store favorites by IP +## [3.2.8] 2023-05-10 +### Fixed +- Allow user to retry with filepicker if auto path discovery resulted in false positive + ## [3.2.7] 2023-05-10 ### Changed - Better sudo escalation within zenity dialogs if vm map count is too small diff --git a/dzgui.sh b/dzgui.sh index 67b53b1..ef244ec 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -1,7 +1,7 @@ #!/bin/bash set -o pipefail -version=3.2.7 +version=3.2.8 aid=221100 game="dayz" @@ -272,7 +272,11 @@ create_config(){ find_library_folder if [[ -z $steam_path ]]; then zenity --question --text="DayZ not found or not installed at the chosen path." --ok-label="Retry" --cancel-label="Exit" - [[ $? -eq 1 ]] && exit + if [[ $? -eq 0 ]]; then + file_picker + else + exit + fi else mkdir -p $config_path write_config > $config_file