mirror of
https://github.com/aclist/dztui.git
synced 2024-12-28 21:32:36 +01:00
chore: debugging symlinks
This commit is contained in:
parent
b31cfdf273
commit
4fb87ac746
1 changed files with 7 additions and 3 deletions
10
dzgui.sh
10
dzgui.sh
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -o pipefail
|
||||
version=3.4.0-rc.3
|
||||
version=3.4.0-rc.4
|
||||
|
||||
aid=221100
|
||||
game="dayz"
|
||||
|
@ -457,9 +457,13 @@ legacy_symlinks(){
|
|||
done
|
||||
echo "UNLINKED SYMS" >> $HOME/dzdebug
|
||||
for d in "$workshop_dir"/*; do
|
||||
echo "dir is $d" >> $HOME/dzdebug
|
||||
local id=$(awk -F"= " '/publishedid/ {print $2}' "$d"/meta.cpp | awk -F\; '{print $1}')
|
||||
echo "id is $id" >> $HOME/dzdebug
|
||||
local encoded_id=$(echo "$id" | awk '{printf("%c",$1)}' | base64 | sed 's/\//_/g; s/=//g; s/+/]/g')
|
||||
echo "encoded id is $encoded_id" >> $HOME/dzdebug
|
||||
if [[ -h "$game_dir/@$encoded_id" ]]; then
|
||||
echo "found sym, unlinking" >> $HOME/log
|
||||
unlink "$game_dir/@$encoded_id"
|
||||
fi
|
||||
done
|
||||
|
@ -1692,7 +1696,7 @@ check_branch(){
|
|||
upstream=$(curl -Ls "$version_url" | awk -F= '/^version=/ {print $2}')
|
||||
}
|
||||
enforce_dl(){
|
||||
download_new_version > >($steamsafe_zenity --progress --pulsate --auto-close --no-cancel --width=500)
|
||||
download_new_version > >($steamsafe_zenity --progress --title="DZGUI" --pulsate --auto-close --no-cancel --width=500)
|
||||
}
|
||||
prompt_dl(){
|
||||
$steamsafe_zenity --question --title="DZGUI" --text "Version conflict.\n\nYour branch:\t\t\t$branch\nYour version:\t\t\t$version\nUpstream version:\t\t$upstream\n\nVersion updates introduce important bug fixes and are encouraged.\n\nAttempt to download latest version?" --width=500 --ok-label="Yes" --cancel-label="No" 2>/dev/null
|
||||
|
@ -1701,7 +1705,7 @@ prompt_dl(){
|
|||
return
|
||||
else
|
||||
echo "100"
|
||||
download_new_version > >($steamsafe_zenity --progress --pulsate --auto-close --no-cancel --width=500)
|
||||
download_new_version > >($steamsafe_zenity --title="DZGUI" --progress --pulsate --auto-close --no-cancel --width=500)
|
||||
fi
|
||||
}
|
||||
check_version(){
|
||||
|
|
Loading…
Reference in a new issue