fixes trailing newline

This commit is contained in:
Ben 2025-02-17 13:20:22 +01:00
parent 27bd79d4b1
commit 90d1c951e1
No known key found for this signature in database
GPG Key ID: 0F16E812E736C24B

View File

@ -159,7 +159,8 @@ export async function installCodex(config, showNavigationMenu) {
await runCommand('timeout 120 bash install.sh');
}
await saveCodexExePathToConfig(config, path.join(process.env.LOCALAPPDATA, "Codex", "codex"));
const codexExePath = (await runCommand("which codex")).replace("\n", "");
await saveCodexExePathToConfig(config, codexExePath);
} catch (error) {
if (error.message.includes('ECONNREFUSED') || error.message.includes('ETIMEDOUT')) {