mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Merge pull request #186 from shivammathur/develop
Update ppa before installing PHP
This commit is contained in:
commit
b46021d870
@ -287,10 +287,7 @@ if [ "$existing_version" != "$version" ]; then
|
||||
elif [[ "$version" =~ $old_versions ]] || [ "$version" = "5.3" ]; then
|
||||
setup_old_versions
|
||||
else
|
||||
version_exists=$(apt-cache policy -- php"$version" | grep "$version")
|
||||
if [ -z "$version_exists" ]; then
|
||||
update_ppa
|
||||
fi
|
||||
$apt_install php"$version" php"$version"-curl php"$version"-mbstring php"$version"-xml >/dev/null 2>&1
|
||||
fi
|
||||
status="Installed"
|
||||
|
Loading…
Reference in New Issue
Block a user