From 6ea9b02d6fff1e7d54ce5b0571b4894e23a60c00 Mon Sep 17 00:00:00 2001 From: Brett Bender Date: Wed, 1 Apr 2020 16:43:01 -0500 Subject: [PATCH] Trying to fix things ._. --- cmd/run.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cmd/run.go b/cmd/run.go index 12305dd..5ba02a4 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -84,7 +84,13 @@ with a single command.`, if CheckError(err) { return } - directory := usr.HomeDir + "\\.qsr\\" + + directory := "" + if runtime.GOOS == "darwin" || runtime.GOOS == "linux" { + directory = usr.HomeDir + "/.qsr/" + } else if runtime.GOOS == "windows" { + directory = usr.HomeDir + "\\.qsr\\" + } if _, err := os.Stat(directory); err != nil { if os.IsNotExist(err) { err = os.Mkdir(directory, os.ModeDir)