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

PowerShell install script fails on Linux #111

Open
scaleoutsean opened this issue Jul 11, 2022 · 1 comment
Open

PowerShell install script fails on Linux #111

scaleoutsean opened this issue Jul 11, 2022 · 1 comment
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers

Comments

@scaleoutsean
Copy link

  • PowerShell 7.2.5 on Ubuntu 20.04
  • Instructions should highlight where OS-specific steps are required
  • There's also a bug whereby install script looks under scripts/scripts rather than scripts; maybe that's because I executed from the scripts subdir, but Bash instructions suggest to run from that directory so it'd be better if instructions were consistent and if the PS script could handle it
Get-Content: /home/sean/code/Codex-CLI/scripts/powershell_setup.ps1:82
Line |
  82 |  (Get-Content -Path $plugInScriptPath) -replace "{{codex_query_path}}" …
     |   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path '/home/sean/code/Codex-CLI/scripts/scripts/powershell_plugin.ps1' because it does not
     | exist.
  • This is also OS-specific and not handled properly. What's this path supposed to be?
PS /home/sean/code/Codex-CLI/scripts> # get current time UTC
>> # Please update the nl_cli_script path in the profile!
>> 
>> notepad :/home/sean/.config/powershell/Microsoft.PowerShell_profile.ps1
>> # Please update the nl_cli_script path in the profile!
notepad: 
Line |
   4 |  notepad :/home/sean/.config/powershell/Microsoft.PowerShell_profile.p …
     |  ~~~~~~~
     | The term 'notepad' is not recognized as a name of a cmdlet, function, script file, or executable program.
@Vivihung
Copy link
Member

@scaleoutsean, thanks for the feedback. We'll take a look at PowerShell on Ubuntu.

@Vivihung Vivihung self-assigned this Jul 14, 2022
@Vivihung Vivihung added bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers labels Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants