1
0
Fork 0
mirror of https://github.com/aclist/dztui.git synced 2024-12-29 13:52:03 +01:00
This commit is contained in:
aclist 2024-12-18 20:57:49 +09:00 committed by GitHub
commit eac91acf75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 2 deletions

View file

@ -83,6 +83,7 @@ logger(){
local self="${BASH_SOURCE[0]}" local self="${BASH_SOURCE[0]}"
local caller="${FUNCNAME[1]}" local caller="${FUNCNAME[1]}"
local line="${BASH_LINENO[0]}" local line="${BASH_LINENO[0]}"
self="$(<<< "$self" sed 's@\(/[^/]*/\)\([^/]*\)\(.*\)@\1REDACTED\3@g')"
printf "%s␞%s␞%s::%s()::%s␞%s\n" "$date" "$tag" "$self" "$caller" "$line" "$string" >> "$debug_log" printf "%s␞%s␞%s::%s()::%s␞%s\n" "$date" "$tag" "$self" "$caller" "$line" "$string" >> "$debug_log"
} }
setup_dirs(){ setup_dirs(){

View file

@ -337,8 +337,9 @@ is_in_favs(){
find_id(){ find_id(){
local file="$default_steam_path/config/loginusers.vdf" local file="$default_steam_path/config/loginusers.vdf"
[[ ! -f $file ]] && return 1 [[ ! -f $file ]] && return 1
local res=$(python3 $HOME/.local/share/dzgui/helpers/vdf2json.py \ local res=$(python3 "$helpers_path/vdf2json.py" \
-i "$file" | jq -r '.users -i "$file" \
| jq -r '.users
|to_entries[] |to_entries[]
|select(.value.MostRecent=="1") |select(.value.MostRecent=="1")
|.key' |.key'
@ -739,6 +740,7 @@ logger(){
local self="${BASH_SOURCE[0]}" local self="${BASH_SOURCE[0]}"
local caller="${FUNCNAME[1]}" local caller="${FUNCNAME[1]}"
local line="${BASH_LINENO[0]}" local line="${BASH_LINENO[0]}"
self="$(<<< "$self" sed 's@\(/[^/]*/\)\([^/]*\)\(.*\)@\1REDACTED\3@g')"
printf "%s␞%s␞%s::%s()::%s␞%s\n" "$date" "$tag" "$self" "$caller" "$line" "$string" >> "$debug_log" printf "%s␞%s␞%s::%s()::%s␞%s\n" "$date" "$tag" "$self" "$caller" "$line" "$string" >> "$debug_log"
} }
test_ping(){ test_ping(){