summaryrefslogtreecommitdiffstats
path: root/cmd-run-shell.c
diff options
context:
space:
mode:
authornicm <nicm>2014-04-17 07:55:43 +0000
committernicm <nicm>2014-04-17 07:55:43 +0000
commit2740490e279bac7b01f18cc39aa59a5de09e3a95 (patch)
tree664689226d287ee21d97062c53fc1ef17464dda1 /cmd-run-shell.c
parent877bdb46ed91580a3a4c430bc8c550314301352a (diff)
Remove the "info" message mechanism, this was only used for about five
mostly useless and annoying messages. Change those commands to silence on success like all the others. Still accept the -q command line flag and "quiet" server option for now.
Diffstat (limited to 'cmd-run-shell.c')
-rw-r--r--cmd-run-shell.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/cmd-run-shell.c b/cmd-run-shell.c
index d835e461..8799e0ab 100644
--- a/cmd-run-shell.c
+++ b/cmd-run-shell.c
@@ -161,13 +161,9 @@ cmd_run_shell_callback(struct job *job)
retcode = WTERMSIG(job->status);
xasprintf(&msg, "'%s' terminated by signal %d", cmd, retcode);
}
- if (msg != NULL) {
- if (lines == 0)
- cmdq_info(cmdq, "%s", msg);
- else
- cmd_run_shell_print(job, msg);
- free(msg);
- }
+ if (msg != NULL)
+ cmd_run_shell_print(job, msg);
+ free(msg);
}
void