microsoft / Codex-CLI

CLI tool that uses Codex to turn natural language commands into their Bash/ZShell/PowerShell equivalents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PowerShell install script fails on Linux

scaleoutsean opened this issue · comments

  • 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.

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