Last compile error
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 3 Apr 2012 13:13:54 +0000 (09:13 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Tue, 3 Apr 2012 13:32:06 +0000 (09:32 -0400)
main.go

diff --git a/main.go b/main.go
index 8109fd53b39f90c78c79338d23699b9c370f3744..7cb55e7ebcef189413aaf48eb5819333c508c931 100644 (file)
--- a/main.go
+++ b/main.go
@@ -30,7 +30,7 @@ func main() {
        fmt.Printf("Reading configuration from %v\n", *configPath)
        if len(*configPath) > 0 {
                *configPath = strings.Replace(*configPath, "~", "$HOME", 1)
-               *configPath = os.ShellExpand(*configPath)
+               *configPath = os.ExpandEnv(*configPath)
                error := config.ReadFromFile(*configPath, configuration)
                if error != nil {
                        fmt.Printf("Error while reading configuration: %v\n", error)