mirror of
https://github.com/CachyOS/New-Cli-Installer.git
synced 2025-01-23 22:42:31 +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) {
|
||||
spdlog::error("popen failed! '{}'", command);
|
||||
return "1";
|
||||
return "-1";
|
||||
}
|
||||
|
||||
std::string result{};
|
||||
|
Loading…
Reference in New Issue
Block a user