Changed gsudoModule install location to support Windows Powershell too (Chocolatey).

This commit is contained in:
Gerardo Grignoli 2023-07-17 20:15:59 -03:00
parent a42947bb6c
commit c7c3c9380a

View File

@ -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