Skip to content

Commit

Permalink
Place default workspace in home directory
Browse files Browse the repository at this point in the history
The default config had an empty string as Home, this writes Home first, so that
the workspace goes there instead of in the current directory.
  • Loading branch information
Katrina Owen committed Jun 22, 2018
1 parent a607135 commit 5bbf936
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/configure.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ You can also override certain default settings to suit your preferences.
if err != nil {
return err
}
usrCfg.Normalize()
if usrCfg.Workspace == "" {
dirName := path.Base(BinaryName)
defaultWorkspace := path.Join(usrCfg.Home, dirName)
Expand Down

0 comments on commit 5bbf936

Please sign in to comment.