diff options
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/command.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/helper/command.c b/src/helper/command.c index b4b2164e..11284a1c 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -357,6 +357,10 @@ int command_run_line(command_context_t *context, char *line) if (!*line) return ERROR_OK; + /* ignore comments */ + if (*line && (line[0] == '#')) + return ERROR_OK; + if (context->echo) { command_print(context, "%s", line); |