sysid: Make sure gitbranch_string is always declared
Parsing of not existed "gitbranch_string" fails the build process.main
parent
6a374ef457
commit
8335e1bd9a
|
@ -119,6 +119,8 @@ proc sysid_gen_sys_init_file {{custom_string {}}} {
|
||||||
} else {
|
} else {
|
||||||
set gitbranch_string [lindex $gitbranch_string [expr [lsearch -exact $gitbranch_string "*"] + 1]];
|
set gitbranch_string [lindex $gitbranch_string [expr [lsearch -exact $gitbranch_string "*"] + 1]];
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
set gitbranch_string "";
|
||||||
}
|
}
|
||||||
|
|
||||||
set git_clean_hex [hexstr_flip [stringtohex $git_clean_string 4]];
|
set git_clean_hex [hexstr_flip [stringtohex $git_clean_string 4]];
|
||||||
|
|
Loading…
Reference in New Issue