Skip to content

Commit

Permalink
typo correction
Browse files Browse the repository at this point in the history
  • Loading branch information
gekigek99 committed Oct 14, 2020
1 parent c0c9a56 commit c5804b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions go-version/minecraft-server-hibernation.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,20 @@ func startMinecraftServer() {
if runtime.GOOS == "linux" {
err := exec.Command("/bin/bash", "-c", config.Tomodify.StartMinecraftServerLin).Run()
if err != nil {
log.Printf("stopEmptyMinecraftServer: error starting minecraft server: %v\n", err)
log.Printf("startMinecraftServer: error starting minecraft server: %v\n", err)
return
}
} else if runtime.GOOS == "windows" {
var err error
cmd := exec.Command(strings.Split(config.Tomodify.StartMinecraftServerWin, " ")[0], strings.Split(config.Tomodify.StartMinecraftServerWin, " ")[1:]...)
cmdIn, err = cmd.StdinPipe()
if err != nil {
log.Printf("stopEmptyMinecraftServer: error creating StdinPipe: %v\n", err)
log.Printf("startMinecraftServer: error creating StdinPipe: %v\n", err)
return
}
cmd.Start()
} else {
log.Print("stopEmptyMinecraftServer: error: OS not supported!")
log.Print("startMinecraftServer: error: OS not supported!")
os.Exit(1)
}

Expand Down

0 comments on commit c5804b6

Please sign in to comment.