From ef8f0436ddd814e589da69ad58164bc369e5218b Mon Sep 17 00:00:00 2001 From: Felipe Martin Date: Sun, 8 Nov 2020 21:31:31 +0100 Subject: [PATCH] Using relative output path --- pkg/cli/cli.go | 2 +- pkg/helpers/dir.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cli/cli.go b/pkg/cli/cli.go index 97fec5d..3b57a85 100644 --- a/pkg/cli/cli.go +++ b/pkg/cli/cli.go @@ -15,7 +15,7 @@ import ( var AllowedProviders = [...]string{"steam"} -const OutputPath string = "~/Developer/games-screenshot-manager/Output" +const OutputPath string = "./Output/" func main() { Start() diff --git a/pkg/helpers/dir.go b/pkg/helpers/dir.go index e9c8fe2..c8f7f0a 100644 --- a/pkg/helpers/dir.go +++ b/pkg/helpers/dir.go @@ -7,7 +7,7 @@ import ( ) func ExpandUser(providedPath string) string { - var path string + var path string = providedPath usr, _ := user.Current() dir := usr.HomeDir