Skip to content

Commit

Permalink
Run switch_version before check_extensions on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Sep 11, 2022
1 parent 6333217 commit 7aff4d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/linux.sh
Expand Up @@ -88,8 +88,8 @@ add_devtools() {
if ! command -v "$tool$version" >/dev/null; then
install_packages "php$version-dev"
fi
add_extension xml extension >/dev/null 2>&1
switch_version "phpize" "php-config"
add_extension xml extension >/dev/null 2>&1
add_log "${tick:?}" "$tool" "Added $tool $semver"
}

Expand Down Expand Up @@ -139,7 +139,6 @@ add_packaged_php() {
add_ppa ondrej/php >/dev/null 2>&1 || update_ppa ondrej/php
IFS=' ' read -r -a packages <<<"$(sed "s/[^ ]*/php$version-&/g" "$src"/configs/php_packages | tr '\n' ' ')"
install_packages "${packages[@]}"
add_pecl
else
run_script "php-ubuntu" "$version"
fi
Expand All @@ -166,6 +165,7 @@ add_php() {
else
add_packaged_php
switch_version >/dev/null 2>&1
add_pecl
fi
status="Installed"
}
Expand Down

0 comments on commit 7aff4d7

Please sign in to comment.