From c7c3c9380a70bd004c4a3bebe9f54b86d836afbd Mon Sep 17 00:00:00 2001 From: Gerardo Grignoli Date: Mon, 17 Jul 2023 20:15:59 -0300 Subject: [PATCH] Changed gsudoModule install location to support Windows Powershell too (Chocolatey). --- build/Chocolatey/gsudo/tools/chocolateyinstall.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/Chocolatey/gsudo/tools/chocolateyinstall.ps1 b/build/Chocolatey/gsudo/tools/chocolateyinstall.ps1 index 2469098d..5250d48f 100644 --- a/build/Chocolatey/gsudo/tools/chocolateyinstall.ps1 +++ b/build/Chocolatey/gsudo/tools/chocolateyinstall.ps1 @@ -30,7 +30,7 @@ Install-ChocolateyPath -PathToInstall $SymLinkDir -PathType 'Machine' cmd /c mklink "$TargetDir\sudo.exe" "$TargetDir\gsudo.exe" 2>$null # Copy gsudoModule to "$env:ProgramFiles\PowerShell\Modules\gsudoModule" -$PSModulesTargetDir = "$env:ProgramFiles\PowerShell\Modules\gsudoModule" +$PSModulesTargetDir = "$env:ProgramFiles\WindowsPowerShell\Modules\gsudoModule" md $PSModulesTargetDir -ErrorAction SilentlyContinue copy "$bin\*.ps*" $PSModulesTargetDir -Exclude *.ignore -Force