mirror of
https://github.com/aclist/dztui.git
synced 2025-04-11 23:03:00 +02: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
|
- Standardize dialogs
|
||||||
- Query and connect by IP/port
|
- 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
|
## [2.6.0-rc.4] 2022-09-03
|
||||||
### Fixed
|
### Fixed
|
||||||
- Use alternate API for direct IP queries
|
- Use alternate API for direct IP queries
|
||||||
|
|
4
dzgui.sh
4
dzgui.sh
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -o pipefail
|
set -o pipefail
|
||||||
version=2.6.0-rc.4
|
version=2.6.0-rc.5
|
||||||
|
|
||||||
aid=221100
|
aid=221100
|
||||||
game="dayz"
|
game="dayz"
|
||||||
|
@ -466,7 +466,7 @@ ip_table(){
|
||||||
echo "No selection"
|
echo "No selection"
|
||||||
else
|
else
|
||||||
local gameport="$(echo "$sel" | awk -F: '{print $2}')"
|
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 addr=$(< $json jq -r --arg gameport $gameport '.servers[]|select(.gameport == ($gameport|tonumber)).addr')
|
||||||
local qport=$(echo "$addr" | awk -F: '{print $2}')
|
local qport=$(echo "$addr" | awk -F: '{print $2}')
|
||||||
local sa_ip=$(echo "$ip:$gameport%%$qport")
|
local sa_ip=$(echo "$ip:$gameport%%$qport")
|
||||||
|
|
Loading…
Reference in a new issue