Skip to content

Commit

Permalink
Merge pull request #68 from endelwar/endelwar-patch-1
Browse files Browse the repository at this point in the history
Update php search regex
  • Loading branch information
wilmoore committed Apr 20, 2018
2 parents 0a5ecb8 + a5b606f commit 8d76a07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function php-version {

# add default Homebrew directories if brew is installed
if [[ -n $(command -v brew) ]]; then
export _PHP_VERSIONS="$_PHP_VERSIONS $(echo $(find $(brew --cellar) -maxdepth 1 -type l | grep -E 'php[0-9]*$'))"
export _PHP_VERSIONS="$_PHP_VERSIONS $(echo $(find $(brew --cellar) -maxdepth 1 -type d | grep -E 'php$|php@[0-9\.]*$'))"
fi

# add extra directories if configured
Expand Down

0 comments on commit 8d76a07

Please sign in to comment.