summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/exec/exec-command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/exec/exec-command.c b/src/plugins/exec/exec-command.c
index 1ba3bf53c..b5e4dfc52 100644
--- a/src/plugins/exec/exec-command.c
+++ b/src/plugins/exec/exec-command.c
@@ -576,9 +576,9 @@ exec_command_run (struct t_gui_buffer *buffer,
{
weechat_printf (NULL, "%s: executing command: \"%s%s%s\"",
EXEC_PLUGIN_NAME,
- (cmd_options.use_shell) ? "" : "sh -c '",
+ (cmd_options.use_shell) ? "sh -c '" : "",
argv_eol[cmd_options.command_index],
- (cmd_options.use_shell) ? "" : "'");
+ (cmd_options.use_shell) ? "'" : "");
}
new_exec_cmd->hook = weechat_hook_process_hashtable (
(cmd_options.use_shell) ? "sh" : argv_eol[cmd_options.command_index],