Skip to content

Commit

Permalink
fix config load
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Apr 22, 2017
1 parent 1709165 commit b36de46
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .release/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.3.1
v0.3.2
4 changes: 2 additions & 2 deletions config/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#######################################################################

title = "Malice Runtime Configuration"
version = "v0.3.1"
version = "v0.3.2"

[author]
name = "blacktop"
Expand Down
2 changes: 2 additions & 0 deletions config/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ func Load(version string) {
configPath := path.Join(maldirs.GetConfigDir(), "./config.toml")
if _, err := os.Stat(configPath); err == nil {
loadFromToml(configPath, version)
return
}
loadFromBinary(configPath)
return
}

0 comments on commit b36de46

Please sign in to comment.