flash/startup: make program accept filenames with spaces and other characters 83/4083/2
authorPaul Fertser <fercerpav@gmail.com>
Tue, 28 Mar 2017 10:23:43 +0000 (13:23 +0300)
committerPaul Fertser <fercerpav@gmail.com>
Sat, 13 Jan 2018 08:43:26 +0000 (08:43 +0000)
This should allow to process any path names excluding those that have
curly braces.

Change-Id: I87bf9ddede11e2b28d5826878eb1338143f73c03
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/4083
Tested-by: jenkins
src/flash/startup.tcl

index ed905e9..ff053ae 100644 (file)
@@ -42,6 +42,7 @@ proc program {filename args} {
 
        # start programming phase
        echo "** Programming Started **"
+       set filename \{$filename\}
        if {[info exists address]} {
                set flash_args "$filename $address"
        } else {