1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-29 13:52:03 +01:00

fix: restore log generation

This commit is contained in:
aclist 2023-08-17 23:47:17 +09:00
parent 08669fa435
commit 2e992f0d9b

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -o pipefail set -o pipefail
version=3.3.10 version=3.3.11
aid=221100 aid=221100
game="dayz" game="dayz"
@ -1206,7 +1206,7 @@ options_menu(){
debug_list=( debug_list=(
"Toggle branch" "Toggle branch"
"Toggle debug mode" "Toggle debug mode"
"Generate debug log" "Output system info"
"Toggle auto mod install [$auto_hr]" "Toggle auto mod install [$auto_hr]"
) )
#TODO: tech debt: drop old flags #TODO: tech debt: drop old flags
@ -1225,11 +1225,12 @@ options_menu(){
check_version check_version
;; ;;
"Toggle debug mode") toggle_debug ;; "Toggle debug mode") toggle_debug ;;
"Generate debug log") "Output system info")
source_script=$(realpath "$0") source_script=$(realpath "$0")
source_dir=$(dirname "$source_script") 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 $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 ;; Toggle[[:space:]]auto*) toggle_console_dl ;;
"Force update local mods") "Force update local mods")