mirror of https://github.com/docker/compose.git
Use OS-dependant pathListSeparator, when appending to PATH
Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
This commit is contained in:
parent
2ff803bf44
commit
5e809acd87
|
@ -73,7 +73,7 @@ func init() {
|
|||
if err != nil {
|
||||
fatal(errors.Wrap(err, "unable to get absolute bin path"))
|
||||
}
|
||||
if err := os.Setenv("PATH", fmt.Sprintf("%s:%s", os.Getenv("PATH"), path)); err != nil {
|
||||
if err := os.Setenv("PATH", fmt.Sprintf("%s%s%s", os.Getenv("PATH"), os.PathListSeparator, path)); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
// Seed random
|
||||
|
|
Loading…
Reference in New Issue