fix typos

This commit is contained in:
2026-06-25 21:35:07 -04:00
parent bee4ed305e
commit 14574ae992
4 changed files with 13 additions and 12 deletions

View File

@@ -16,8 +16,9 @@ func Shell(cmd *cobra.Command, args []string) {
name := getServerName(dir)
start_cmd := exec.Command("docker", "exec", name, "rcon-cli")
if err := start_cmd.Run(); err != nil {
shell_cmd := exec.Command("docker", "exec", name, "rcon-cli")
if err := shell_cmd.Run(); err != nil {
log.Fatal(err)
}
}
@@ -30,8 +31,8 @@ func Say(cmd *cobra.Command, args []string) {
name := getServerName(dir)
start_cmd := exec.Command("docker", "exec", name, "rcon-cli", strings.Join(args[1:], " "))
if err := start_cmd.Run(); err != nil {
say_cmd := exec.Command("docker", "exec", name, "rcon-cli", strings.Join(args[1:], " "))
if err := say_cmd.Run(); err != nil {
log.Fatal(err)
}
}