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)