mirror of
https://github.com/aclist/dztui.git
synced 2026-10-25 12:12:31 +01:00
Make variable local
This commit is contained in:
1 parent
f760347334
commit
a427daabd6
2 files changed
+6
-2
No files matched your search
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user