Skip to content

Commit

Permalink
Fix regex in check for valid package names
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Aug 30, 2022
1 parent 5503491 commit 58311d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ setup_dependencies() {
libraries=""
extension_packages=""
for extension_package in "${extensions_array[@]}"; do
[[ ! "$extension_package" =~ php[0-9]+\.[0-9]+-[a-zA-Z]+ ]] && continue
[[ ! "$extension_package" =~ php[0-9]+\.[0-9]+-[a-zA-Z]+$ ]] && continue
fetch_package
libraries="$libraries $(get_dependencies "$extension_package" "lib")"
IFS=' ' read -r -a dependency_extension_packages_array <<<"$(get_dependencies "$extension_package" "php$version-")"
Expand Down

0 comments on commit 58311d5

Please sign in to comment.