Skip to content

Commit

Permalink
Allow expansion of path variables (such as $HOME) from the bin path v…
Browse files Browse the repository at this point in the history
…alue provided in the tfswitch.toml configuration file.
  • Loading branch information
bobdoah committed Nov 28, 2019
1 parent 934cd6d commit 6166eb6
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 @@ -88,7 +88,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 6166eb6

Please sign in to comment.