From c0d1479ae80fed0f6c5f89cc536d9cd9eeb4b119 Mon Sep 17 00:00:00 2001 From: Couleur <82747632+couleurm@users.noreply.github.com> Date: Wed, 31 Jan 2024 19:09:30 +0100 Subject: [PATCH] isvk: move resolve dvcp bundle recursively --- modules/Installers/Install-Voukoder.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/Installers/Install-Voukoder.ps1 b/modules/Installers/Install-Voukoder.ps1 index fdbd470..ff60ef6 100644 --- a/modules/Installers/Install-Voukoder.ps1 +++ b/modules/Installers/Install-Voukoder.ps1 @@ -191,9 +191,9 @@ function Install-Voukoder { $dvcpBundle = "$IOPlugins\voukoder_plugin.dvcp.bundle" if (-Not(Test-Path $IOPlugins)){ - New-Item -ItemType Directory -Path $IOPlugins + New-Item -ItemType Directory -Path $IOPlugins | Out-Null } - elseif (Test-Path $dvcpBundle){ + elseif (Test-Path $dvcpBundle -PathType Container){ if (-Not(Get-Boolean "Would you like to reinstall/update the Voukoder Resolve plugin? (Y/N)")){continue} Remove-Item $dvcpBundle -Force -Recurse } @@ -205,7 +205,7 @@ function Install-Voukoder { Remove-Item $ExtractDir -Recurse -Force -ErrorAction Ignore Expand-Archive $Zip -Destination $ExtractDir - Copy-Item "$ExtractDir\voukoder_plugin.dvcp.bundle" $IOPlugins + Copy-Item "$ExtractDir\voukoder_plugin.dvcp.bundle" $IOPlugins -Recurse Write-Warning "If connection failed you should find instructions in $ExtractDir\README.txt" }