From 4391cf8a4ced86742fdd960643d711ed3456fc5f Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 19 Jul 2020 09:13:03 +0530 Subject: [PATCH] Fix warning in add_pdo_extension --- src/scripts/linux.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/linux.sh b/src/scripts/linux.sh index 8d1dda37..fffe5215 100644 --- a/src/scripts/linux.sh +++ b/src/scripts/linux.sh @@ -139,7 +139,7 @@ add_pdo_extension() { else read -r ext ext_name <<< "$1 $1" sudo rm -rf "$scan_dir"/*pdo.ini >/dev/null 2>&1 - if ! check_extension "pdo"; then echo "extension=pdo.so" >> "$ini_file"; fi + if ! check_extension "pdo" 2>/dev/null; then echo "extension=pdo.so" >> "$ini_file"; fi if [ "$ext" = "mysql" ]; then enable_extension "mysqlnd" "extension" ext_name="mysqli"