Skip to content

Commit 93ce381

Browse files
committed
check if env vars exists before using them
Signed-off-by: Eder Monteiro <[email protected]>
1 parent f887692 commit 93ce381

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

flow/scripts/detail_route.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ set all_args [concat [list \
5252

5353
log_cmd detailed_route {*}$all_args
5454

55-
if { ![env_var_equals SKIP_ANTENNA_REPAIR_POST_DRT 1] && $::env(MAX_REPAIR_ANTENNAS_ITER_DRT) } {
55+
if { ![env_var_equals SKIP_ANTENNA_REPAIR_POST_DRT 1] && [env_var_exists_and_non_empty MAX_REPAIR_ANTENNAS_ITER_DRT] } {
5656
set repair_antennas_iters 1
5757
if { [repair_antennas] } {
5858
detailed_route {*}$all_args

flow/scripts/global_route.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ proc global_route_helper { } {
8686
log_cmd global_route -end_incremental \
8787
-congestion_report_file $::env(REPORTS_DIR)/congestion_post_recover_power.rpt
8888

89-
if { ![env_var_equals SKIP_ANTENNA_REPAIR 1] && $::env(MAX_REPAIR_ANTENNAS_ITER_GRT) } {
89+
if { ![env_var_equals SKIP_ANTENNA_REPAIR 1] && [env_var_exists_and_non_empty MAX_REPAIR_ANTENNAS_ITER_GRT] } {
9090
puts "Repair antennas..."
9191
repair_antennas -iterations $::env(MAX_REPAIR_ANTENNAS_ITER_GRT)
9292
check_placement -verbose

0 commit comments

Comments
 (0)