Fix warning in add_pdo_extension

This commit is contained in:
Shivam Mathur 2020-07-19 09:13:03 +05:30
parent 87a69f94d9
commit 4391cf8a4c
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -139,7 +139,7 @@ add_pdo_extension() {
else else
read -r ext ext_name <<< "$1 $1" read -r ext ext_name <<< "$1 $1"
sudo rm -rf "$scan_dir"/*pdo.ini >/dev/null 2>&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 if [ "$ext" = "mysql" ]; then
enable_extension "mysqlnd" "extension" enable_extension "mysqlnd" "extension"
ext_name="mysqli" ext_name="mysqli"