mirror of
				https://github.com/shivammathur/setup-php.git
				synced 2025-10-31 23:36:21 +07:00 
			
		
		
		
	Fix get_extension_from_formula in darwin.sh
This commit is contained in:
		| @ -28,7 +28,7 @@ disable_extension_helper() { | ||||
| get_extension_from_formula() { | ||||
|   local formula=$1 | ||||
|   local extension | ||||
|   extension=$(grep "$formula=" "$src"/configs/brew_extensions | cut -d '=' -f 2) | ||||
|   extension=$(grep -E "^$formula=" "$src"/configs/brew_extensions | cut -d '=' -f 2) | ||||
|   [[ -z "$extension" ]] && extension="$(echo "$formula" | sed -E "s/pecl_|[0-9]//g")" | ||||
|   echo "$extension" | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user