8 lines
146 B
Bash
Executable File
8 lines
146 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
#Compare two dotted-number versions.
|
|
|
|
[ "$1" = "$2" ] && exit 0
|
|
[ "$1" = "`echo -e "$1\n$2" |sort -V |tail -n1`" ] && exit 0
|
|
exit 1
|