From d8089ab48779412b5cb8391bf1638f79a3eb0b93 Mon Sep 17 00:00:00 2001 From: jc Date: Wed, 12 Feb 2025 09:16:58 +0000 Subject: [PATCH] missing delim --- portradar.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/portradar.sh b/portradar.sh index 302c5e0..784a4c1 100755 --- a/portradar.sh +++ b/portradar.sh @@ -166,7 +166,7 @@ cidr_to_ips() { wait # read - [[ -f /tmp/ips ]] && ips=($(sort -t. -n +3 /tmp/ips)) || { cg_color bby "Either dead hosts in this subnet or ping is disabled :("; exit; } + [[ -f /tmp/ips ]] && ips=($(sort -t. -n -k +3 /tmp/ips)) || { cg_color bby "Either dead hosts in this subnet or ping is disabled :("; exit; } [[ $HOST_SCAN == true ]] && { out=${ips[*]}; l="\n"; echo -n "Number of live hosts: "; cg_color bbb ${#ips[@]}; echo -e "\e[1;92m${out//${IFS:0:1}/$l}\e[0m"; exit; } }