]> git.sur5r.net Git - openocd/blobdiff - src/helper/interpreter.c
- only some cosmetic changes, convert \r\n to unix
[openocd] / src / helper / interpreter.c
index 7b0432abc097a68191b142a8ab88ed734370eada..85cd71586dcd9a820c11b58a1681d97490ededa9 100644 (file)
@@ -231,7 +231,7 @@ int handle_script_command(struct command_context_s *cmd_ctx, char *cmd, char **a
        echo = cmd_ctx->echo;
        cmd_ctx->echo = 1;
        
-       command_run_file(cmd_ctx, script_file, COMMAND_EXEC);
+       command_run_file(cmd_ctx, script_file, cmd_ctx->mode);
        
        cmd_ctx->echo = echo;