mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
Minor fixes in scripts
This commit is contained in:
parent
6597a6a15b
commit
2f8045c593
@ -40,7 +40,7 @@ pecl_install() {
|
||||
yes '' | sudo pecl install -f "$extension" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
# Fuction to get the PECL version
|
||||
# Function to get the PECL version
|
||||
get_pecl_version() {
|
||||
extension=$1
|
||||
stability="$(echo "$2" | grep -m 1 -Eio "(alpha|beta|rc|snapshot)")"
|
||||
|
@ -22,7 +22,7 @@ cleanup_lists() {
|
||||
sudo mv /etc/apt/sources.list.d /etc/apt/sources.list.d.save || true
|
||||
sudo mkdir /etc/apt/sources.list.d
|
||||
sudo mv /etc/apt/sources.list.d.save/*ondrej*.list /etc/apt/sources.list.d/ || true
|
||||
trap "sudo mv /etc/apt/sources.list.d.save/*.list /etc/apt/sources.list.d/" exit
|
||||
trap "sudo mv /etc/apt/sources.list.d.save/*.list /etc/apt/sources.list.d/ 2>/dev/null" exit
|
||||
fi
|
||||
}
|
||||
|
||||
@ -46,7 +46,7 @@ configure_pecl() {
|
||||
fi
|
||||
}
|
||||
|
||||
# Fuction to get the PECL version
|
||||
# Function to get the PECL version
|
||||
get_pecl_version() {
|
||||
extension=$1
|
||||
stability="$(echo "$2" | grep -m 1 -Eio "(alpha|beta|rc|snapshot)")"
|
||||
|
Loading…
Reference in New Issue
Block a user