mirror of https://github.com/linuxdeepin/linglong
fix: correct the command to install uab
Signed-off-by: ComixHe <heyuming@deepin.org>
This commit is contained in:
parent
c7e1f8a1a6
commit
482b753813
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue