From 42fcb9fe3c11f279da83a43301557fb96207767d Mon Sep 17 00:00:00 2001 From: Hien To Date: Wed, 6 Nov 2024 16:50:58 +0700 Subject: [PATCH] fix: macos updater --- 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 61fc6076f..1b1605866 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 "sudo touch /var/tmp/cortex_installer_skip_postinstall && sudo installer " + return "sudo touch /var/tmp/cortex_installer_skip_postinstall_check && sudo installer " "-pkg " + exe_path + - " -target / && sudo rm /var/tmp/cortex_installer_skip_postinstall"; + " -target / && sudo rm /var/tmp/cortex_installer_skip_postinstall_check"; #elif defined(__linux__) return "echo -e \"n\\n\" | sudo SKIP_POSTINSTALL=true apt install -y " "--allow-downgrades " +