mirror of
https://github.com/logos-storage/logos-storage-installer.git
synced 2026-01-02 13:33:11 +00:00
Adds quotes to fix paths with spaces
This commit is contained in:
parent
28c509ae5f
commit
91fa025864
@ -60,7 +60,7 @@ export async function getCodexVersion(config) {
|
||||
if (config.codexExe.length < 1) return "";
|
||||
|
||||
try {
|
||||
const version = await runCommand(`${config.codexExe} --version`);
|
||||
const version = await runCommand(`"${config.codexExe}" --version`);
|
||||
if (version.length < 1) throw new Error("Version info not found.");
|
||||
return version;
|
||||
} catch (error) {
|
||||
|
||||
@ -84,8 +84,8 @@ export async function runCodex(config, showNavigationMenu) {
|
||||
|
||||
const executable = config.codexExe;
|
||||
const args = [
|
||||
`--data-dir=${config.dataDir}`,
|
||||
`--log-file=${logFilePath}`,
|
||||
`--data-dir="${config.dataDir}"`,
|
||||
`--log-file="${logFilePath}"`,
|
||||
`--disc-port=${discPort}`,
|
||||
`--listen-addrs=/ip4/0.0.0.0/tcp/${listenPort}`,
|
||||
`--nat=${nat}`,
|
||||
@ -94,7 +94,7 @@ export async function runCodex(config, showNavigationMenu) {
|
||||
];
|
||||
|
||||
const command =
|
||||
`${executable} ${args.join(" ")}`
|
||||
`"${executable}" ${args.join(" ")}`
|
||||
|
||||
console.log(showInfoMessage(
|
||||
'🚀 Codex node is running...\n\n' +
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user