mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 12:41:29 +00:00
checklibs.sh: newest didn't work when newest version was first in list
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
NDIR=${NDIR:-$PWD}
|
||||
|
||||
newest() {
|
||||
perl -ne'$n=pack"C*",split/\./;$m=($m,$n)[$n gt$m];END{print join".",unpack("C*",$m)}'
|
||||
perl -nE'END{$,=".";say unpack"C*",$m}$m=($m,$n)[($n=pack"C*",split/\./) gt$m]'
|
||||
}
|
||||
|
||||
trim_version() {
|
||||
|
||||
Reference in New Issue
Block a user