diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-11 20:25:30 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-02-11 20:25:30 +0300 |
commit | a5548d71b72b050df4d708953120af5f16dde39b (patch) | |
tree | b4afde6c7168dfa127fbf8402acd79c6bc6a8ff1 /main.go | |
parent | 9bc5a5ff0b4bbbf8ef2fab821bc974909d276982 (diff) |
Added more behavior tests
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -9,6 +9,7 @@ import ( "strings" "sync" "time" + "path/filepath" ) // VERSION stores the information about the semantic version of application @@ -109,6 +110,12 @@ func main() { fmt.Printf("URL: https://gitlab.com/gitlab-org/gitlab-pages") flag.Parse() + fullPath, err := filepath.EvalSymlinks(*pagesRoot) + if err != nil { + log.Fatalln(err) + } + *pagesRoot = fullPath + // Listen for HTTP if *listenHTTP != "" { wg.Add(1) |