Moar typos
This commit is contained in:
parent
1617715b93
commit
38ad750001
4
main.go
4
main.go
@ -88,7 +88,7 @@ func processModifiedFile(filePath, directory, destDir string) {
|
|||||||
fileName := strings.TrimSuffix(filepath.Base(filePath), filepath.Ext(filePath))
|
fileName := strings.TrimSuffix(filepath.Base(filePath), filepath.Ext(filePath))
|
||||||
slug := slug.Make(fileName)
|
slug := slug.Make(fileName)
|
||||||
|
|
||||||
// Creating destiny directory
|
// Creating destination directory
|
||||||
newDir := filepath.Join(destDir, slug)
|
newDir := filepath.Join(destDir, slug)
|
||||||
err := os.MkdirAll(newDir, os.ModePerm)
|
err := os.MkdirAll(newDir, os.ModePerm)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -96,7 +96,7 @@ func processModifiedFile(filePath, directory, destDir string) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Copy modified file to the new destiny
|
// Copy modified file to the new destination
|
||||||
newFilePath := filepath.Join(newDir, "index.md")
|
newFilePath := filepath.Join(newDir, "index.md")
|
||||||
err = copyFile(filePath, newFilePath)
|
err = copyFile(filePath, newFilePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user