1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

checklibs.sh: newest didn't work when newest version was first in list

This commit is contained in:
dmiller
2013-12-24 19:23:33 +00:00
parent 08a12f3921
commit b5d9c1107f

View File

@@ -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() {