From 964a15a86cc9a1a786925e79b97800f9e12c01a9 Mon Sep 17 00:00:00 2001 From: MarvinJWendt Date: Sat, 15 May 2021 01:48:13 +0200 Subject: [PATCH] feat: detect pwd --- pterm-ci-cmd.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pterm-ci-cmd.go b/pterm-ci-cmd.go index bd872ce..4911fdf 100644 --- a/pterm-ci-cmd.go +++ b/pterm-ci-cmd.go @@ -109,7 +109,8 @@ func walkOverExt(path, exts string, f func(path string)) { } func getPathTo(file string) string { - return filepath.Join(rootPath, file) + dir, _ := os.Getwd() + return filepath.Join(dir, file) } func updateSidebar(docs []string) {