From 08b9df450749ce9973a75edd313dea9a3b85567d Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Sat, 9 Dec 2023 16:41:42 +0900 Subject: [PATCH] fix: use raw output --- dzgui.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dzgui.sh b/dzgui.sh index 4db4d09..c6b3a75 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -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