Skip to content

Commit b5d9c11

Browse files
committed
checklibs.sh: newest didn't work when newest version was first in list
1 parent 08a12f3 commit b5d9c11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

checklibs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
NDIR=${NDIR:-$PWD}
44

55
newest() {
6-
perl -ne'$n=pack"C*",split/\./;$m=($m,$n)[$n gt$m];END{print join".",unpack("C*",$m)}'
6+
perl -nE'END{$,=".";say unpack"C*",$m}$m=($m,$n)[($n=pack"C*",split/\./) gt$m]'
77
}
88

99
trim_version() {

0 commit comments

Comments
 (0)