More fixes in fetching tool versions

This commit is contained in:
Shivam Mathur
2021-07-14 14:17:32 +05:30
parent f31bef6a30
commit 09e08a3554
10 changed files with 285 additions and 302 deletions
+1 -1
View File
@@ -300,7 +300,7 @@ add_composertool() {
# Function to get PHP version in semver format.
php_semver() {
php"$version" -v | grep -Eo -m 1 "[0-9]+\.[0-9]+\.[0-9]+" | head -n 1
php -v | grep -Eo -m 1 "[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z]+([0-9]+)?)?" | head -n 1
}
# Function to get the tag for a php version.