summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-11-17 11:17:37 +0100
committerSébastien Helleu <flashcode@flashtux.org>2018-11-17 11:17:37 +0100
commitc94a8f4c683e343aa9eb47008f4172e50d723b48 (patch)
tree6835c82af5173dbdd23992c8fd13ed3051cc6d5d
parentba9b087ca329fc64d82bdaf024557712a3a2bc84 (diff)
downloadweechat-c94a8f4c683e343aa9eb47008f4172e50d723b48.zip
exec: fix command displayed in debug message
-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],