Skip to content

Commit

Permalink
Fix parsing 8.1 version
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Sep 2, 2021
1 parent e06e402 commit da9dadf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ add_composertool() {

# Function to get PHP version in semver format.
php_semver() {
php -v | grep -Eo -m 1 "[0-9]+\.[0-9]+\.[0-9]+(-[a-zA-Z]+([0-9]+)?)?" | head -n 1
php -v | grep -Eo -m 1 "[0-9]+\.[0-9]+\.[0-9]+((-?[a-zA-Z]+([0-9]+)?)?){2}" | head -n 1
}

# Function to get the tag for a php version.
Expand Down
1 change: 1 addition & 0 deletions src/scripts/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ setup_php() {
scan_dir=$(php --ini | grep additional | sed -e "s|.*: s*||")
ini_dir=$(php --ini | grep "(php.ini)" | sed -e "s|.*: s*||")
pecl_file="$scan_dir"/99-pecl.ini
export ext_dir
mapfile -t ini_file < <(sudo find "$ini_dir/.." -name "php.ini" -exec readlink -m {} +)
link_pecl_file
configure_php
Expand Down

0 comments on commit da9dadf

Please sign in to comment.