From 2f8045c5934565f1d0fa00068e2ab4f0fc7d891e Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 12 Oct 2020 12:50:26 +0530 Subject: [PATCH] Minor fixes in scripts --- src/scripts/darwin.sh | 2 +- src/scripts/linux.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index a168f044..ca8f0fba 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -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)")" diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index 94516461..ad2ba02b 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -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)")"