Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install-PowerShellCommand.ps1 uses incorrect path #241

Closed
ferventcoder opened this issue Apr 13, 2015 · 0 comments
Closed

Install-PowerShellCommand.ps1 uses incorrect path #241

ferventcoder opened this issue Apr 13, 2015 · 0 comments

Comments

@ferventcoder
Copy link
Member

Originally reported at https://groups.google.com/d/msgid/chocolatey/daf1090e-6038-4b6c-af92-8aa2e984822b%40googlegroups.com?utm_medium=email&utm_source=footer

 Adding C:\ProgramData\bin\cyg-get.bat and pointing it to powershell command C:\ProgramData\chocolatey\lib\cyg-get\tools\cyg-get.ps1
 Out-File : Could not find a part of the path 'C:\ProgramData\bin\cyg-get.bat'.
 At C:\ProgramData\chocolatey\helpers\functions\Install-ChocolateyPowershellComm
 and.ps1:40 char:102
 + powershell -NoProfile -ExecutionPolicy unrestricted -Command ""& `'$psFileFul
 lPath`'  %*"""| Out-File <<<<  $packageBatchFileName -encoding ASCII
     + CategoryInfo          : OpenError: (:) [Out-File], DirectoryNotFoundExce
    ption
     + FullyQualifiedErrorId : FileOpenFailure,Microsoft.PowerShell.Commands.Ou
    tFileCommand
cyg-get install not successful.
Error while running 'C:\ProgramData\chocolatey\lib\cyg-get\tools\chocolateyinstall.ps1'.
 See log for details.
@ferventcoder ferventcoder added this to the 0.9.9.5 milestone Apr 13, 2015
ferventcoder added a commit that referenced this issue Apr 13, 2015
Fix Install-ChocolateyPowerShellCommand to account for the path changes
to reduce the number of directories to go back up to get to bin.
ferventcoder added a commit that referenced this issue Apr 13, 2015
* stable:
  (GH-241) Posh Command Install uses bad path
@ferventcoder ferventcoder self-assigned this Apr 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants