src/helper/startup: fix syntax errors
The missing closing brackets were caught by tclint v0.2.5 (https://github.com/nmoroze/tclint): ``` tclint src/helper/startup.tcl | grep "syntax error" ``` The improperly escaped backslash was caught by manual inspection during code review. Change-Id: I8cd44e58040d4627f6b2fc8b88ca8a930cda0ba6 Signed-off-by: Noah Moroze <noahmoroze@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/8282 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
parent
7050cade9d
commit
b5e7118048
|
@ -11,10 +11,10 @@ proc find {filename} {
|
|||
if {[catch {ocd_find $filename} t]==0} {
|
||||
return $t
|
||||
}
|
||||
if {[catch {ocd_find [string map {\ /} $filename} t]==0} {
|
||||
if {[catch {ocd_find [string map {\\ /} $filename]} t]==0} {
|
||||
return $t
|
||||
}
|
||||
if {[catch {ocd_find [string map {/ \\} $filename} t]==0} {
|
||||
if {[catch {ocd_find [string map {/ \\} $filename]} t]==0} {
|
||||
return $t
|
||||
}
|
||||
# make sure error message matches original input string
|
||||
|
|
Loading…
Reference in New Issue