Skip to content

Commit

Permalink
Merge pull request #7 from redcraft-org/bugfix/wrong_config_name
Browse files Browse the repository at this point in the history
Fixed config file name
  • Loading branch information
lululombard authored Oct 31, 2020
2 parents e46c26b + 2d1af72 commit c299d35
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 c299d35

Please sign in to comment.