mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 21:33:06 +07:00
Fix warning in add_pdo_extension
This commit is contained in:
parent
87a69f94d9
commit
4391cf8a4c
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user