From 704c7e57002fa649abb12bd6a6d7e03e994f94cb Mon Sep 17 00:00:00 2001 From: Hien To Date: Tue, 5 Nov 2024 15:37:05 +0700 Subject: [PATCH] fix: network installer macos not install llama-cpp engine --- engine/cli/commands/cortex_upd_cmd.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/cli/commands/cortex_upd_cmd.cc b/engine/cli/commands/cortex_upd_cmd.cc index 6983de470..8e2517166 100644 --- a/engine/cli/commands/cortex_upd_cmd.cc +++ b/engine/cli/commands/cortex_upd_cmd.cc @@ -55,10 +55,10 @@ std::string GetNightlyInstallerName(const std::string& v, // C:\Users\vansa\AppData\Local\Temp\cortex\cortex-windows-amd64-network-installer.exe std::string GetInstallCmd(const std::string& exe_path) { #if defined(__APPLE__) && defined(__MACH__) - return "touch /var/tmp/cortex_installer_skip_postinstall && sudo installer " + return "sudo touch /var/tmp/cortex_installer_skip_postinstall && sudo installer " "-pkg " + exe_path + - " -target / && rm /var/tmp/cortex_installer_skip_postinstall"; + " -target / && sudo rm /var/tmp/cortex_installer_skip_postinstall"; #elif defined(__linux__) return "echo -e \"n\\n\" | sudo SKIP_POSTINSTALL=true apt install -y " "--allow-downgrades " +