fix: correct the command to install uab

Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
ComixHe 2024-06-28 14:36:23 +08:00 committed by black-desk
parent c7e1f8a1a6
commit 482b753813
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ int importSelf(const std::string &cliBin, const char *uab) noexcept
}
if (pid == 0) {
return ::execl(cliBin.c_str(), cliBin.c_str(), "import", uab, nullptr);
return ::execl(cliBin.c_str(), cliBin.c_str(), "install", uab, nullptr);
}
int status{ 0 };
@ -104,7 +104,7 @@ int importSelf(const std::string &cliBin, const char *uab) noexcept
}
if (auto result = WEXITSTATUS(status); result != 0) {
std::cerr << "ll-cli import failed, return code:" << result << std::endl;
std::cerr << "ll-cli install failed, return code:" << result << std::endl;
::exit(-1);
}