Skip to content

Commit

Permalink
Changed gsudoModule install location to support Windows Powershell to…
Browse files Browse the repository at this point in the history
…o (Chocolatey).
  • Loading branch information
gerardog committed Jul 17, 2023
1 parent a42947b commit c7c3c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build/Chocolatey/gsudo/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c7c3c93

Please sign in to comment.