Skip to content

Commit

Permalink
feature: allow extracting nginx version numbers from more forked vers…
Browse files Browse the repository at this point in the history
…ions of nginx.
  • Loading branch information
agentzh committed May 27, 2016
1 parent ce127ce commit f84ea57
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Test/Nginx/Util.pm
Original file line number Diff line number Diff line change
Expand Up @@ -950,6 +950,10 @@ sub get_nginx_version () {
$NginxRawVersion = "$1.$2.$3";
return get_canon_version($1, $2, $3);
}
if ($out =~ m{\w+/(\d+)\.(\d+)\.(\d+)}s) {
$NginxRawVersion = "$1.$2.$3";
return get_canon_version($1, $2, $3);
}
bail_out("Failed to parse the output of \"nginx -V\": $out\n");
}

Expand Down

0 comments on commit f84ea57

Please sign in to comment.