mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 20:51:30 +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}
|
NDIR=${NDIR:-$PWD}
|
||||||
|
|
||||||
newest() {
|
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() {
|
trim_version() {
|
||||||
|
|||||||
Reference in New Issue
Block a user