mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-02-03 06:27:14 +08:00
🚧 update return status
in case if smth is gone wrong
This commit is contained in:
parent
e7cddf5f13
commit
e4d170486c
@ -184,7 +184,7 @@ std::string exec(const std::string_view& command, const bool& interactive) noexc
|
|||||||
|
|
||||||
if (!pipe) {
|
if (!pipe) {
|
||||||
spdlog::error("popen failed! '{}'", command);
|
spdlog::error("popen failed! '{}'", command);
|
||||||
return "1";
|
return "-1";
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string result{};
|
std::string result{};
|
||||||
|
Loading…
Reference in New Issue
Block a user