mirror of
https://github.com/aclist/dztui.git
synced 2026-08-31 12:16:55 +02:00
fix: early abort if local coords are missing
This commit is contained in:
parent
0ad6366f0a
commit
5654b327d4
@ -425,6 +425,10 @@ local_latlon(){
|
||||
get_dist(){
|
||||
shift
|
||||
local given_ip="$1"
|
||||
if [[ ! -f $_cache_coords ]]; then
|
||||
printf "Unknown"
|
||||
return
|
||||
fi
|
||||
readarray -t coords < "$_cache_coords"
|
||||
readarray -t n < <(<<< "$given_ip" awk 'BEGIN{RS="."}{$1=$1}1')
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user