From 54a22d036cfea791683d6dc02ce2f9541ec75277 Mon Sep 17 00:00:00 2001 From: "Liviu.Iacob" Date: Mon, 18 Jul 2022 12:33:29 +0100 Subject: [PATCH] adi_pd.tcl: Fix git_clean_string logic --- projects/scripts/adi_pd.tcl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/scripts/adi_pd.tcl b/projects/scripts/adi_pd.tcl index 0dface9f4..d9707c8a3 100644 --- a/projects/scripts/adi_pd.tcl +++ b/projects/scripts/adi_pd.tcl @@ -109,8 +109,8 @@ proc sysid_gen_sys_init_file {{custom_string {}}} { set git_clean_string "f"; if {$gitsha_string != 0} { - if {[catch {exec git status .} gitstat_string] == 0} { - if [expr [string match *modified $gitstat_string] == 0] { + if {[catch {exec git status} gitstat_string] == 0} { + if [expr [string match *modified* $gitstat_string] == 0] { set git_clean_string "t"; } }