gofmt for launcher.go

This commit is contained in:
Max Risuhin 2019-03-22 18:09:01 +02:00
parent ab5c4b8b8a
commit 72adb30efd
1 changed files with 3 additions and 3 deletions

View File

@ -50,15 +50,15 @@ func main() {
cmd.Dir = usr.HomeDir
latestVersionDir := filepath.Join(versionsDir, latestVersion)
path, pathSet := os.LookupEnv("PATH")
if (pathSet) {
if pathSet {
path += ";" + latestVersionDir
} else {
path = latestVersionDir
}
cmd.Env = append(os.Environ(), "PATH=" + path)
cmd.Env = append(os.Environ(), "PATH="+path)
const CREATE_NO_WINDOW = 0x08000000
cmd.SysProcAttr = &syscall.SysProcAttr{
HideWindow: true,
HideWindow: true,
CreationFlags: CREATE_NO_WINDOW,
}
check(cmd.Start())