mirror of
https://github.com/aclist/dztui.git
synced 2024-12-28 21:32:36 +01:00
Make variable local
This commit is contained in:
parent
f760347334
commit
a427daabd6
2 changed files with 6 additions and 2 deletions
|
@ -6,6 +6,10 @@
|
|||
- Standardize dialogs
|
||||
- Query and connect by IP/port
|
||||
|
||||
## [2.6.0-rc.5] 2022-09-03
|
||||
### Fixed
|
||||
- Make variable local
|
||||
|
||||
## [2.6.0-rc.4] 2022-09-03
|
||||
### Fixed
|
||||
- Use alternate API for direct IP queries
|
||||
|
|
4
dzgui.sh
4
dzgui.sh
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -o pipefail
|
||||
version=2.6.0-rc.4
|
||||
version=2.6.0-rc.5
|
||||
|
||||
aid=221100
|
||||
game="dayz"
|
||||
|
@ -466,7 +466,7 @@ ip_table(){
|
|||
echo "No selection"
|
||||
else
|
||||
local gameport="$(echo "$sel" | awk -F: '{print $2}')"
|
||||
ip="$(echo "$sel" | awk -F: '{print $1}')"
|
||||
local ip="$(echo "$sel" | awk -F: '{print $1}')"
|
||||
local addr=$(< $json jq -r --arg gameport $gameport '.servers[]|select(.gameport == ($gameport|tonumber)).addr')
|
||||
local qport=$(echo "$addr" | awk -F: '{print $2}')
|
||||
local sa_ip=$(echo "$ip:$gameport%%$qport")
|
||||
|
|
Loading…
Reference in a new issue