Add support for oci8 and pdo_oci

This commit is contained in:
Shivam Mathur
2020-07-15 09:45:40 +05:30
parent 4391cf8a4c
commit 8efcf46b31
6 changed files with 254 additions and 4 deletions

View File

@ -77,8 +77,8 @@ Function Get-CleanPSProfile {
Function Install-PhpManager() {
$repo = "mlocati/powershell-phpmanager"
$tag = (Invoke-RestMethod https://api.github.com/repos/$repo/tags)[0].Name
$module_path = "$bin_dir\PhpManager\powershell-phpmanager-$tag\PhpManager"
if(-not (Test-Path $module_path\PhpManager.psm1 -PathType Leaf)) {
$module_path = "$bin_dir\PhpManager\powershell-phpmanager-$tag\PhpManager\PhpManager.psm1"
if(-not (Test-Path $module_path -PathType Leaf)) {
$zip_file = "$bin_dir\PhpManager.zip"
Invoke-WebRequest -UseBasicParsing -Uri https://github.com/$repo/archive/$tag.zip -OutFile $zip_file
Expand-Archive -Path $zip_file -DestinationPath $bin_dir\PhpManager -Force