mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
fix(automods): Mods to update not breaking on new line
This commit is contained in:
parent
735ca114d0
commit
e21b3fbec0
2 changed files with 12 additions and 7 deletions
|
@ -2,9 +2,14 @@
|
|||
|
||||
## [Unreleased]
|
||||
- Clean up logging
|
||||
- Custom query API
|
||||
- Standardize dialogs
|
||||
- Validate BM API key
|
||||
- Custom query API
|
||||
- Store favorites by IP
|
||||
|
||||
## [3.1.8] 2023-01-18
|
||||
### Fixed
|
||||
- Progress window blocking rest of window stack
|
||||
- Bug when updating old mods if automod set to ON
|
||||
|
||||
## [3.1.7] 2023-01-06
|
||||
### Fixed
|
||||
|
|
8
dzgui.sh
8
dzgui.sh
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -o pipefail
|
||||
version=3.1.7
|
||||
version=3.1.8
|
||||
|
||||
aid=221100
|
||||
game="dayz"
|
||||
|
@ -468,9 +468,9 @@ auto_mod_install(){
|
|||
touch "/tmp/dz.status"
|
||||
console_dl "$diff" &&
|
||||
steam steam://open/downloads && 2>/dev/null 1>&2
|
||||
until [[ -z $(comm -23 <(printf "%s\n" "${modids[@]}" | sort) <(ls -1 $workshop_dir | sort)) ]]; do
|
||||
win=$(xdotool search --name "DZG Watcher")
|
||||
[[ ! $(xdotool getwindowfocus) -eq $win ]] && xdotool windowactivate $win
|
||||
xdotool windowactivate $win
|
||||
until [[ -z $(comm -23 <(printf "%s\n" "${modids[@]}" | sort) <(ls -1 $workshop_dir | sort)) ]]; do
|
||||
local missing=$(comm -23 <(printf "%s\n" "${modids[@]}" | sort) <(ls -1 $workshop_dir | sort) | wc -l)
|
||||
echo "# Downloaded $((${#modids[@]}-missing)) of ${#modids[@]} mods"
|
||||
done | $steamsafe_zenity --pulsate --progress --title="DZG Watcher" --auto-close --no-cancel --width=500 2>/dev/null
|
||||
|
@ -543,7 +543,7 @@ merge_modlists(){
|
|||
elif [[ -n "$diff" ]] && [[ ${#needs_update[@]} -eq 0 ]]; then
|
||||
:
|
||||
else
|
||||
diff="$(echo -e "$diff\n${needs_update[@]}")"
|
||||
diff="$(printf "%s\n%s\n" "$diff" "${needs_update[@]}")"
|
||||
fi
|
||||
[[ $force_update -eq 1 ]] && echo "100"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue