adi_pd.tcl: Fix git_clean_string logic

main
Liviu.Iacob 2022-07-18 12:33:29 +01:00 committed by sarpadi
parent 94c4a291a7
commit 54a22d036c
1 changed files with 2 additions and 2 deletions

View File

@ -109,8 +109,8 @@ proc sysid_gen_sys_init_file {{custom_string {}}} {
set git_clean_string "f"; set git_clean_string "f";
if {$gitsha_string != 0} { if {$gitsha_string != 0} {
if {[catch {exec git status .} gitstat_string] == 0} { if {[catch {exec git status} gitstat_string] == 0} {
if [expr [string match *modified $gitstat_string] == 0] { if [expr [string match *modified* $gitstat_string] == 0] {
set git_clean_string "t"; set git_clean_string "t";
} }
} }