]> git.sur5r.net Git - openocd/commitdiff
flash/startup: make program accept filenames with spaces and other characters
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 ed905e9424af034f6c9c7300f994eb50dbb88b57..ff053ae1b229bc27aa0b52a0795b5f72a70d0ec5 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 {