Minor fixes in scripts

This commit is contained in:
Shivam Mathur 2020-10-12 12:50:26 +05:30
parent 6597a6a15b
commit 2f8045c593
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
2 changed files with 3 additions and 3 deletions

View File

@ -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)")"

View File

@ -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)")"