diff options
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) |