Skip to content

Commit

Permalink
Merge pull request #59 from bobdoah/master
Browse files Browse the repository at this point in the history
Allow expansion of environment variables in the configuration file
  • Loading branch information
warrensbox authored Mar 3, 2020
2 parents 625be1c + 6166eb6 commit e7a6865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ func main() {

bin := viper.Get("bin") // read custom binary location
if binPath == defaultBin && bin != nil { // if the bin path is the same as the default binary path and if the custom binary is provided in the toml file (use it)
binPath = bin.(string)
binPath = os.ExpandEnv(bin.(string))
}
version := viper.Get("version") //attempt to get the version if it's provided in the toml

Expand Down

0 comments on commit e7a6865

Please sign in to comment.