From 90d1c951e1e08bea1195d70a0fa9e7997cd89b4a Mon Sep 17 00:00:00 2001 From: Ben Date: Mon, 17 Feb 2025 13:20:22 +0100 Subject: [PATCH] fixes trailing newline --- src/handlers/installationHandlers.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/handlers/installationHandlers.js b/src/handlers/installationHandlers.js index b37afc5..52781bd 100644 --- a/src/handlers/installationHandlers.js +++ b/src/handlers/installationHandlers.js @@ -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')) {