mirror of
https://github.com/aclist/dztui.git
synced 2025-04-05 12:03:00 +02:00
Clean up legacy symlinks
This commit is contained in:
parent
70f748fd19
commit
4b79fc99ab
2 changed files with 14 additions and 2 deletions
|
@ -4,7 +4,11 @@
|
||||||
- Clean up logging
|
- Clean up logging
|
||||||
- Custom query API
|
- Custom query API
|
||||||
|
|
||||||
## [2.4.2-rc.3] 2022-08-10
|
## [2.4.2-rc.4] 2022-08-13
|
||||||
|
### Changd
|
||||||
|
- Clean up legacy symlinks
|
||||||
|
|
||||||
|
## [2.4.2-rc.3] 2022-08-13
|
||||||
### Fixed
|
### Fixed
|
||||||
- Prevent collisions in symlink IDs
|
- Prevent collisions in symlink IDs
|
||||||
|
|
||||||
|
|
10
dzgui.sh
10
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=2.4.2-rc.2
|
version=2.4.2-rc.4
|
||||||
aid=221100
|
aid=221100
|
||||||
game="dayz"
|
game="dayz"
|
||||||
workshop="steam://url/CommunityFilePage/"
|
workshop="steam://url/CommunityFilePage/"
|
||||||
|
@ -348,6 +348,14 @@ legacy_symlinks(){
|
||||||
unlink "$d"
|
unlink "$d"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
for d in "$workshop_dir"/*; do
|
||||||
|
local id=$(awk -F"= " '/publishedid/ {print $2}' "$d"/meta.cpp | awk -F\; '{print $1}')
|
||||||
|
local encoded_id=$(echo "$id" | awk '{printf("%c",$1)}' | base64 | sed 's/\//_/g; s/=//g; s/+/]/g')
|
||||||
|
if [[ -h "$game_dir/@$encoded_id" ]]; then
|
||||||
|
unlink "$game_dir/@$encoded_id"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
exit
|
||||||
}
|
}
|
||||||
symlinks(){
|
symlinks(){
|
||||||
for d in "$workshop_dir"/*; do
|
for d in "$workshop_dir"/*; do
|
||||||
|
|
Loading…
Reference in a new issue