This commit is contained in:
parent
1d2e223547
commit
83d06a1680
@ -100,7 +100,7 @@ namespace dropshell
|
|||||||
int ret = system(full_cmd.c_str());
|
int ret = system(full_cmd.c_str());
|
||||||
|
|
||||||
bool ok = EXITSTATUSCHECK(ret);
|
bool ok = EXITSTATUSCHECK(ret);
|
||||||
if (!ok)
|
if (!ok && !silent)
|
||||||
{
|
{
|
||||||
std::cerr << "Error: Failed to execute command: " << std::endl;
|
std::cerr << "Error: Failed to execute command: " << std::endl;
|
||||||
std::cerr << full_cmd << std::endl;
|
std::cerr << full_cmd << std::endl;
|
||||||
@ -126,7 +126,7 @@ namespace dropshell
|
|||||||
cMode localmode = mode + cMode::RawCommand;
|
cMode localmode = mode + cMode::RawCommand;
|
||||||
bool rval = execute_local_command(ssh_command, output, localmode);
|
bool rval = execute_local_command(ssh_command, output, localmode);
|
||||||
|
|
||||||
if (!rval)
|
if (!rval && !hasFlag(mode, cMode::Silent))
|
||||||
{
|
{
|
||||||
std::cerr << std::endl
|
std::cerr << std::endl
|
||||||
<< std::endl;
|
<< std::endl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user