From 2e992f0d9bb60451cba221dd1ddc50b49386b00e Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Thu, 17 Aug 2023 23:47:17 +0900 Subject: [PATCH] fix: restore log generation --- dzgui.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dzgui.sh b/dzgui.sh index a638903..7c9d023 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o pipefail -version=3.3.10 +version=3.3.11 aid=221100 game="dayz" @@ -1206,7 +1206,7 @@ options_menu(){ debug_list=( "Toggle branch" "Toggle debug mode" - "Generate debug log" + "Output system info" "Toggle auto mod install [$auto_hr]" ) #TODO: tech debt: drop old flags @@ -1225,11 +1225,12 @@ options_menu(){ check_version ;; "Toggle debug mode") toggle_debug ;; - "Generate debug log") + "Output system info") source_script=$(realpath "$0") source_dir=$(dirname "$source_script") - printf "[DZGUI] Wrote log file to %s/log\n" "$source_dir" + generate_log > "$source_dir/DZGUI.log" $steamsafe_zenity --info --width=500 --title="DZGUI" --text="Wrote log file to \n$source_dir/log" 2>/dev/null + printf "[DZGUI] Wrote log file to %s/log\n" "$source_dir" ;; Toggle[[:space:]]auto*) toggle_console_dl ;; "Force update local mods")