mirror of
https://github.com/aclist/dztui.git
synced 2024-12-29 13:52:03 +01:00
Merge bdea37ddc4
into 99d964bf44
This commit is contained in:
commit
eac91acf75
2 changed files with 5 additions and 2 deletions
1
dzgui.sh
1
dzgui.sh
|
@ -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(){
|
||||||
|
|
|
@ -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(){
|
||||||
|
|
Loading…
Reference in a new issue