From 90ce6c00bc916513fca3b14a451d2e82bfe97c8d Mon Sep 17 00:00:00 2001 From: velvettear Date: Thu, 23 Nov 2023 15:00:34 +0100 Subject: [PATCH] fixed empty output paths --- internal/config/config.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/config/config.go b/internal/config/config.go index 655cdce..fdf7568 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -26,7 +26,8 @@ func Initialize() { Count = tmp if len(os.Args) > 1 { Output = os.Args[1] - } else { + } + if len(Output) == 0 { tmp, error := os.Getwd() if error != nil { loggo.Fatal("encountered an error getting the current working directory", error.Error())