Merge pull request #255 from aclist/fix/unlink-loop

fix: regression introduced in 5.8.1
This commit is contained in:
aclist 2026-01-04 21:25:38 +09:00 committed by GitHub
commit 23f7140c66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 10 additions and 5 deletions

View File

@ -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

View File

@ -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(){

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
set -o pipefail
version="5.8.0"
version="5.8.2"
#CONSTANTS
aid=221100