1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-29 13:52:03 +01:00

Unrelease subscription watcher

This commit is contained in:
aclist 2022-10-08 16:30:47 +09:00
parent 34c28d7bc9
commit 8c7ab958a5

View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
set -o pipefail set -o pipefail
version=2.8.0-rc.16 version=2.8.0-rc.17
aid=221100 aid=221100
game="dayz" game="dayz"
@ -418,34 +418,34 @@ auto_mod_install(){
} }
manual_mod_install(){ manual_mod_install(){
l=0 l=0
for i in "$diff"; do # for i in "$diff"; do
workshop_dir="$steam_path/steamapps/workshop/content/$aid" # workshop_dir="$steam_path/steamapps/workshop/content/$aid"
steam "steam://url/CommunityFilePage/$i" # steam "steam://url/CommunityFilePage/$i"
until [[ -d $workshop_dir/$i ]]; do # until [[ -d $workshop_dir/$i ]]; do
sleep 0.1s # sleep 0.1s
done # done
done # done
compare # compare
[[ -z $diff ]] && passed_mod_check > >(zenity --pulsate --progress --auto-close --width=500 2>/dev/null) # [[ -z $diff ]] && passed_mod_check > >(zenity --pulsate --progress --auto-close --width=500 2>/dev/null)
#if [[ $is_steam_deck -eq 0 ]]; then if [[ $is_steam_deck -eq 0 ]]; then
# open_mod_links open_mod_links
# until [[ -z $diff ]]; do until [[ -z $diff ]]; do
# zenity --question --title="DZGUI" --ok-label="Next" --cancel-label="Cancel" --text="Opened mod links in browser.\nClick [Next] when all mods have been subscribed to.\nThis dialog may reappear if clicking [Next] too soon\nbefore mods are synchronized in the background." --width=500 2>/dev/null zenity --question --title="DZGUI" --ok-label="Next" --cancel-label="Cancel" --text="Opened mod links in browser.\nClick [Next] when all mods have been subscribed to.\nThis dialog may reappear if clicking [Next] too soon\nbefore mods are synchronized in the background." --width=500 2>/dev/null
# rc=$? rc=$?
# if [[ $rc -eq 0 ]]; then if [[ $rc -eq 0 ]]; then
# compare compare
# open_mod_links open_mod_links
# else else
# return return
# fi fi
# done done
#else else
# steam_deck_mods steam_deck_mods
# rc=$? rc=$?
# [[ $rc -eq 1 ]] && return 1 [[ $rc -eq 1 ]] && return 1
#fi fi
#passed_mod_check > >(zenity --pulsate --progress --auto-close --width=500 2>/dev/null) passed_mod_check > >(zenity --pulsate --progress --auto-close --width=500 2>/dev/null)
} }
encode(){ encode(){
echo "$1" | md5sum | cut -c -8 echo "$1" | md5sum | cut -c -8