Skip to content

Commit 72c6525

Browse files
committed
fix : use os.PathListSeparator for cross platform
1 parent 41e67ed commit 72c6525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func InstallKclvm(installRoot string) error {
2323
return err
2424
}
2525
binPath := filepath.Join(installRoot, "bin")
26-
os.Setenv("PATH", os.Getenv("PATH")+":"+binPath)
26+
os.Setenv("PATH", os.Getenv("PATH")+string(os.PathListSeparator)+binPath)
2727

2828
scripts := map[string][]byte{
2929
"kcl": kclScript,

0 commit comments

Comments
 (0)