File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -29,5 +29,5 @@ refs/heads/tmp: 378a370ff2057afeb1eae86eb6e78c476866a4a6
29
29
refs/tags/1.0.0-alpha.2: 4c705f6bc559886632d3871b04f58aab093bfa2f
30
30
refs/tags/homu-tmp: a5286998df566e736b32f6795bfc3803bdaf453d
31
31
refs/tags/1.0.0-beta: 8cbb92b53468ee2b0c2d3eeb8567005953d40828
32
- refs/heads/stable: 535040aab88508e4c43b7d29a96ea74aa5d0883a
32
+ refs/heads/stable: 939c53ea42bc677dbce9755a77bd55a5d47f8185
33
33
refs/tags/1.0.0: 55bd4f8ff2b323f317ae89e254ce87162d52a375
Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ probe() {
104
104
T=$( command -v $P 2>&1 )
105
105
if [ $? -eq 0 ]
106
106
then
107
- VER0=$( $P --version 2> /dev/null | head -1 \
108
- | sed -e ' s/[^0-9]*\([ vV]\?[0-9.]\+[^ ]*\).*/\1/ ' )
107
+ VER0=$( $P --version 2> /dev/null \
108
+ | grep -o ' [ vV]\?[0-9][0-9.][a-z0-9.-]* ' | head -1 )
109
109
if [ $? -eq 0 -a " x${VER0} " != " x" ]
110
110
then
111
111
VER=" ($VER0 )"
You can’t perform that action at this time.
0 commit comments