Skip to content

Commit

Permalink
Fixed config file name
Browse files Browse the repository at this point in the history
  • Loading branch information
lululombard committed Oct 31, 2020
1 parent e46c26b commit 2d1af72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rcsm/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

var (
// Version is the current version of rcsm
Version string = "0.1.0"
Version string = "0.1.1"
// EnvFile is the path to the .env file config
EnvFile string = ".env"

Expand Down
4 changes: 2 additions & 2 deletions rcsm/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func CreateMissingServers() {

func readConfig(serverPath string) (MinecraftServer, error) {
var minecraftServer MinecraftServer
configFilePath := path.Join(serverPath, "rcsm_json")
configFilePath := path.Join(serverPath, "rcsm_config.json")

_, err := os.Stat(configFilePath)
if os.IsNotExist(err) {
Expand Down Expand Up @@ -65,7 +65,7 @@ func initConfig(serverPath string) {
os.Exit(1)
}

configFilePath := path.Join(serverPath, "rcsm_json")
configFilePath := path.Join(serverPath, "rcsm_config.json")

err = ioutil.WriteFile(configFilePath, jsonContents, 0644)
if err != nil {
Expand Down

0 comments on commit 2d1af72

Please sign in to comment.