mirror of
https://github.com/gerardog/gsudo.git
synced 2025-01-07 03:06:40 +08:00
Changed gsudoModule install location to support Windows Powershell too (Chocolatey).
This commit is contained in:
parent
a42947bb6c
commit
c7c3c9380a
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user