Fix section name guessing on Windows

This commit is contained in:
Nuno Antunes authored and bep committed 2015-03-28 21:43:55 +01:00
1 parent 15463d3d45
commit 61a02c4df8
1 file changed
+1 -1
+1 -1
View File
@@ -93,7 +93,7 @@ func NewContent(cmd *cobra.Command, args []string) {
var kind string
// assume the first directory is the section (kind)
if strings.Contains(createpath[1:], "/") {
if strings.Contains(createpath[1:], string(filepath.Separator)) {
kind = helpers.GuessSection(createpath)
}