Skip to content
This repository was archived by the owner on Feb 27, 2018. It is now read-only.

Commit 0be3cf7

Browse files
committed
Improve removing the library path
1 parent c026934 commit 0be3cf7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

virtualbox/vbm.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818
func init() {
1919
if runtime.GOOS == "darwin" {
2020
// remove DYLD_LIBRARY_PATH and LD_LIBRARY_PATH as they break VBoxManage on OSX
21-
os.Setenv("DYLD_LIBRARY_PATH", "")
22-
os.Setenv("LD_LIBRARY_PATH", "")
21+
os.Unsetenv("DYLD_LIBRARY_PATH")
22+
os.Unsetenv("LD_LIBRARY_PATH")
2323
}
2424
}
2525

0 commit comments

Comments
 (0)