?
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 18s

This commit is contained in:
Your Name 2025-05-11 21:58:20 +12:00
parent 1d2e223547
commit 83d06a1680

View File

@ -100,7 +100,7 @@ namespace dropshell
int ret = system(full_cmd.c_str());
bool ok = EXITSTATUSCHECK(ret);
if (!ok)
if (!ok && !silent)
{
std::cerr << "Error: Failed to execute command: " << std::endl;
std::cerr << full_cmd << std::endl;
@ -126,7 +126,7 @@ namespace dropshell
cMode localmode = mode + cMode::RawCommand;
bool rval = execute_local_command(ssh_command, output, localmode);
if (!rval)
if (!rval && !hasFlag(mode, cMode::Silent))
{
std::cerr << std::endl
<< std::endl;