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

fix: use raw output

This commit is contained in:
aclist 2023-12-09 16:41:42 +09:00
parent 34fcd5f387
commit 08b9df4507

View file

@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -o pipefail
version=4.1.0.rc-7
version=4.1.0.rc-8
aid=221100
game="dayz"
@ -761,7 +761,7 @@ parse_ips(){
local address=$(<<< $res jq -r '.address')
local ip=$(<<< $address awk -F: '{print $1}')
local gameport=$(<<< $address awk -F: '{print $2}')
local qport=$(<<< $res jq '.qport')
local qport=$(<<< $res jq -r '.qport')
logger INFO "Found '${name}' at ${ip}:${gameport}:${qport}"
echo "${name}%%${ip}:${gameport}%%${qport}"
return 0