Skip to content

Commit 4fd81f3

Browse files
committed
Update for systems that do not provide the environment variable OS
1 parent 00c7d7d commit 4fd81f3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

OsvvmScriptsCore.tcl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,10 @@ proc OpenBuildHtml {{BuildName ""}} {
490490
}
491491

492492
proc DefaultVendor_OpenBuildHtml {BuildHtmlFile} {
493-
if {[regexp {[Ww]indows} $::env(OS)]} {
494-
exec {*}[auto_execok start] "$BuildHtmlFile"
493+
if {[info exists ::env(OS)]} {
494+
if {[regexp {[Ww]indows} $::env(OS)]} {
495+
exec {*}[auto_execok start] "$BuildHtmlFile"
496+
}
495497
}
496498
}
497499

0 commit comments

Comments
 (0)