mirror of
https://github.com/aclist/dztui.git
synced 2025-01-01 15:12:05 +01:00
Sanitize username in logs
This commit is contained in:
parent
83e7425e74
commit
34c28d7bc9
2 changed files with 30 additions and 22 deletions
46
dzgui.sh
46
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=2.8.0-rc.15
|
version=2.8.0-rc.16
|
||||||
|
|
||||||
aid=221100
|
aid=221100
|
||||||
game="dayz"
|
game="dayz"
|
||||||
|
@ -418,24 +418,34 @@ auto_mod_install(){
|
||||||
}
|
}
|
||||||
manual_mod_install(){
|
manual_mod_install(){
|
||||||
l=0
|
l=0
|
||||||
if [[ $is_steam_deck -eq 0 ]]; then
|
for i in "$diff"; do
|
||||||
open_mod_links
|
workshop_dir="$steam_path/steamapps/workshop/content/$aid"
|
||||||
until [[ -z $diff ]]; do
|
steam "steam://url/CommunityFilePage/$i"
|
||||||
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
|
until [[ -d $workshop_dir/$i ]]; do
|
||||||
rc=$?
|
sleep 0.1s
|
||||||
if [[ $rc -eq 0 ]]; then
|
|
||||||
compare
|
|
||||||
open_mod_links
|
|
||||||
else
|
|
||||||
return
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
else
|
done
|
||||||
steam_deck_mods
|
compare
|
||||||
rc=$?
|
[[ -z $diff ]] && passed_mod_check > >(zenity --pulsate --progress --auto-close --width=500 2>/dev/null)
|
||||||
[[ $rc -eq 1 ]] && return 1
|
|
||||||
fi
|
#if [[ $is_steam_deck -eq 0 ]]; then
|
||||||
passed_mod_check > >(zenity --pulsate --progress --auto-close --width=500 2>/dev/null)
|
# open_mod_links
|
||||||
|
# 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
|
||||||
|
# rc=$?
|
||||||
|
# if [[ $rc -eq 0 ]]; then
|
||||||
|
# compare
|
||||||
|
# open_mod_links
|
||||||
|
# else
|
||||||
|
# return
|
||||||
|
# fi
|
||||||
|
# done
|
||||||
|
#else
|
||||||
|
# steam_deck_mods
|
||||||
|
# rc=$?
|
||||||
|
# [[ $rc -eq 1 ]] && return 1
|
||||||
|
#fi
|
||||||
|
#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
|
||||||
|
|
|
@ -298,14 +298,12 @@ return_to_dzg(){
|
||||||
cleanup
|
cleanup
|
||||||
else
|
else
|
||||||
$(cd $HOME/.local/share/dzgui/helpers; zenity --text-info --html --width=390 --height=452 --filename="d.html" 2>/dev/null)
|
$(cd $HOME/.local/share/dzgui/helpers; zenity --text-info --html --width=390 --height=452 --filename="d.html" 2>/dev/null)
|
||||||
return 0
|
cleanup
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
cleanup(){
|
cleanup(){
|
||||||
tput cnorm
|
tput cnorm
|
||||||
cp $helpers_path/SCMD.log $helpers_path/SCMD.log.bk
|
sed -i "s/Logging in user '.*'/Logging in user XXX/" $helpers_path/SCMD.log
|
||||||
grep -v "Logging in user" $helpers_path/SCMD.log.bk > $helpers_path/SCMD.log
|
|
||||||
rm $helpers_path/SCMD.log.bk
|
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
abort(){
|
abort(){
|
||||||
|
|
Loading…
Reference in a new issue