Skip to content

Commit 29a26ee

Browse files
author
Katrina Owen
authored
Merge pull request #566 from exercism/default-workspace-freal-this-time
Actually set the default workspace
2 parents 2dc6afc + c0f4bf0 commit 29a26ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/configure.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package cmd
22

33
import (
44
"fmt"
5+
"path"
56
"text/tabwriter"
67

78
"github.com/exercism/cli/config"
@@ -34,7 +35,7 @@ You can also override certain default settings to suit your preferences.
3435
return err
3536
}
3637
if usrCfg.Workspace == "" {
37-
fmt.Println(usrCfg.Home + BinaryName)
38+
usrCfg.Workspace = path.Join(usrCfg.Home, path.Base(BinaryName))
3839
}
3940

4041
apiCfg := config.NewEmptyAPIConfig()

0 commit comments

Comments
 (0)