From d0e28fdfbea0a23a6957551efbe2a8a26707c27b Mon Sep 17 00:00:00 2001 From: maddalax Date: Mon, 23 Sep 2024 15:50:31 -0500 Subject: [PATCH] pass proper working dir --- cli/htmgo/tasks/css/css.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cli/htmgo/tasks/css/css.go b/cli/htmgo/tasks/css/css.go index f9ae1de..a736e6a 100644 --- a/cli/htmgo/tasks/css/css.go +++ b/cli/htmgo/tasks/css/css.go @@ -7,6 +7,7 @@ import ( "github.com/maddalax/htmgo/cli/htmgo/tasks/process" "log" "log/slog" + "path/filepath" "runtime" ) @@ -90,7 +91,9 @@ func downloadTailwindCli() { }, process.ExitOnError) } - err := dirutil.MoveFile(fileName, "./__htmgo/tailwind") + err := dirutil.MoveFile( + filepath.Join(process.GetWorkingDir(), fileName), + filepath.Join(process.GetWorkingDir(), "__htmgo/tailwind")) if err != nil { log.Fatalf("Error moving file: %s\n", err.Error())