Skip to content

Commit

Permalink
fix : use os.PathListSeparator for cross platform
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverRaR committed Feb 21, 2023
1 parent 41e67ed commit 72c6525
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func InstallKclvm(installRoot string) error {
return err
}
binPath := filepath.Join(installRoot, "bin")
os.Setenv("PATH", os.Getenv("PATH")+":"+binPath)
os.Setenv("PATH", os.Getenv("PATH")+string(os.PathListSeparator)+binPath)

scripts := map[string][]byte{
"kcl": kclScript,
Expand Down

0 comments on commit 72c6525

Please sign in to comment.