From 1b2871051b972e7c747e308a03d1d2d7e186e218 Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Thu, 21 Dec 2023 13:33:51 -0600 Subject: [PATCH] Check if the filename is already an absolute path, and return that if so --- pkg/config/config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/config/config.go b/pkg/config/config.go index a0b7c9f..ac8334a 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -129,6 +129,9 @@ func GetChiaRootPath() (string, error) { // GetFullPath returns the full path to a particular filename within CHIA_ROOT func (c *ChiaConfig) GetFullPath(filename string) string { + if filepath.IsAbs(filename) { + return filename + } return filepath.Join(c.ChiaRoot, filename) }