From fbcfa1fb34d9b7db2f56a90b59bd459057c69b57 Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Sun, 4 Jan 2026 21:24:06 +0900 Subject: [PATCH] fix: regression introduced in 5.8.1. --- CHANGELOG.md | 4 ++++ dzgui.sh | 9 +++++---- helpers/funcs | 2 +- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 655c00d..90d4b7e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [5.8.2] 2026-01-01 +## Fixed +- Fix regression in symlink routine introduced by previous hotfix + ## [5.8.1] 2025-12-27 ## Fixed - Path discovery during first-time setup when parsing filepaths with whitespaces diff --git a/dzgui.sh b/dzgui.sh index da73642..faf60ad 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -o pipefail -version=5.8.1 +version=5.8.2 #CONSTANTS aid=221100 @@ -488,9 +488,10 @@ migrate_files(){ } stale_symlinks(){ local game_dir="$steam_path/steamapps/common/DayZ" - for l in "$(find "$game_dir" -xtype l)"; do - logger DEBUG "Updating stale symlink '$l'" - unlink "$l" + readarray -t links < <(find "$game_dir" -xtype l) + for link in "${links[@]}"; do + logger DEBUG "Updating stale symlink '$link'" + unlink "$link" done } local_latlon(){ diff --git a/helpers/funcs b/helpers/funcs index 31b5f59..651ad64 100755 --- a/helpers/funcs +++ b/helpers/funcs @@ -1,6 +1,6 @@ #!/usr/bin/env bash set -o pipefail -version="5.8.0" +version="5.8.2" #CONSTANTS aid=221100