mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-29 23:03:04 +07:00
Fix sqlite logs
This commit is contained in:
parent
08c60fceea
commit
6cbc46fdb6
11
dist/index.js
vendored
11
dist/index.js
vendored
@ -2757,7 +2757,7 @@ async function addExtensionDarwin(extension_csv, version, pipe) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
add_script +=
|
add_script +=
|
||||||
'\nadd_extension ' + ext_name + ' "' + command + '" ' + ext_prefix;
|
'\nadd_extension ' + extension + ' "' + command + '" ' + ext_prefix;
|
||||||
});
|
});
|
||||||
return add_script + remove_script;
|
return add_script + remove_script;
|
||||||
}
|
}
|
||||||
@ -2836,7 +2836,7 @@ async function addExtensionWindows(extension_csv, version) {
|
|||||||
'\n';
|
'\n';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
add_script += '\nAdd-Extension ' + ext_name;
|
add_script += '\nAdd-Extension ' + extension;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -2925,7 +2925,10 @@ async function addExtensionLinux(extension_csv, version, pipe) {
|
|||||||
return;
|
return;
|
||||||
// match pdo extensions
|
// match pdo extensions
|
||||||
case /.*pdo[_-].*/.test(version_extension):
|
case /.*pdo[_-].*/.test(version_extension):
|
||||||
extension = extension.replace('pdo_', '').replace('pdo-', '');
|
extension = extension
|
||||||
|
.replace('pdo_', '')
|
||||||
|
.replace('pdo-', '')
|
||||||
|
.replace('sqlite3', 'sqlite');
|
||||||
add_script += '\nadd_pdo_extension ' + extension;
|
add_script += '\nadd_pdo_extension ' + extension;
|
||||||
return;
|
return;
|
||||||
// match ast and uopz
|
// match ast and uopz
|
||||||
@ -2942,7 +2945,7 @@ async function addExtensionLinux(extension_csv, version, pipe) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
add_script +=
|
add_script +=
|
||||||
'\nadd_extension ' + ext_name + ' "' + command + '" ' + ext_prefix;
|
'\nadd_extension ' + extension + ' "' + command + '" ' + ext_prefix;
|
||||||
});
|
});
|
||||||
return add_script + remove_script;
|
return add_script + remove_script;
|
||||||
}
|
}
|
||||||
|
@ -110,7 +110,7 @@ export async function addExtensionDarwin(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
add_script +=
|
add_script +=
|
||||||
'\nadd_extension ' + ext_name + ' "' + command + '" ' + ext_prefix;
|
'\nadd_extension ' + extension + ' "' + command + '" ' + ext_prefix;
|
||||||
});
|
});
|
||||||
return add_script + remove_script;
|
return add_script + remove_script;
|
||||||
}
|
}
|
||||||
@ -198,7 +198,7 @@ export async function addExtensionWindows(
|
|||||||
'\n';
|
'\n';
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
add_script += '\nAdd-Extension ' + ext_name;
|
add_script += '\nAdd-Extension ' + extension;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -293,7 +293,10 @@ export async function addExtensionLinux(
|
|||||||
return;
|
return;
|
||||||
// match pdo extensions
|
// match pdo extensions
|
||||||
case /.*pdo[_-].*/.test(version_extension):
|
case /.*pdo[_-].*/.test(version_extension):
|
||||||
extension = extension.replace('pdo_', '').replace('pdo-', '');
|
extension = extension
|
||||||
|
.replace('pdo_', '')
|
||||||
|
.replace('pdo-', '')
|
||||||
|
.replace('sqlite3', 'sqlite');
|
||||||
add_script += '\nadd_pdo_extension ' + extension;
|
add_script += '\nadd_pdo_extension ' + extension;
|
||||||
return;
|
return;
|
||||||
// match ast and uopz
|
// match ast and uopz
|
||||||
@ -310,7 +313,7 @@ export async function addExtensionLinux(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
add_script +=
|
add_script +=
|
||||||
'\nadd_extension ' + ext_name + ' "' + command + '" ' + ext_prefix;
|
'\nadd_extension ' + extension + ' "' + command + '" ' + ext_prefix;
|
||||||
});
|
});
|
||||||
return add_script + remove_script;
|
return add_script + remove_script;
|
||||||
}
|
}
|
||||||
|
@ -123,6 +123,8 @@ add_pdo_extension() {
|
|||||||
if [ "$ext" = "mysql" ]; then
|
if [ "$ext" = "mysql" ]; then
|
||||||
enable_extension "mysqlnd" "extension"
|
enable_extension "mysqlnd" "extension"
|
||||||
ext_name="mysqli"
|
ext_name="mysqli"
|
||||||
|
elif [ "$ext" = "sqlite" ]; then
|
||||||
|
read -r ext ext_name <<< "sqlite3 sqlite3"
|
||||||
fi
|
fi
|
||||||
add_extension "$ext_name" "$apt_install php$version-$ext" "extension" >/dev/null 2>&1
|
add_extension "$ext_name" "$apt_install php$version-$ext" "extension" >/dev/null 2>&1
|
||||||
enable_extension "$pdo_ext" "extension"
|
enable_extension "$pdo_ext" "extension"
|
||||||
|
Loading…
Reference in New Issue
Block a user