This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-newt.git


The following commit(s) were added to refs/heads/master by this push:
     new ff1c8e9  Run 'newt load' as an interactive shell command
ff1c8e9 is described below

commit ff1c8e941ef7101928b2c2b1c0488c82b52b6cd1
Author: Naveen Kaje <naveen.k...@juul.com>
AuthorDate: Fri Aug 9 13:36:32 2019 -0500

    Run 'newt load' as an interactive shell command
    
    Some targets support JTAG Lockout (i.e erasing
    flash upon jtag commands for security purposes).
    Enable `newt load` command to run the status
    checking routines by making it an interactive step,
    so that the user has an option to continue or abort
    the image load operation.
---
 newt/builder/load.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newt/builder/load.go b/newt/builder/load.go
index 4938bde..ddfe36c 100644
--- a/newt/builder/load.go
+++ b/newt/builder/load.go
@@ -92,7 +92,7 @@ func Load(binBaseName string, bspPkg *pkg.BspPackage,
        for _, v := range env {
                util.StatusMessage(util.VERBOSITY_VERBOSE, "* %s\n", v)
        }
-       if _, err := util.ShellCommand(cmd, env); err != nil {
+       if err := util.ShellInteractiveCommand(cmd, env); err != nil {
                return err
        }
        util.StatusMessage(util.VERBOSITY_VERBOSE, "Successfully loaded 
image.\n")

Reply via email to