Skip to content

Commit

Permalink
Trying to fix things ._.
Browse files Browse the repository at this point in the history
  • Loading branch information
GreatGodApollo committed Apr 1, 2020
1 parent 3233ea4 commit 6ea9b02
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6ea9b02

Please sign in to comment.