diff options
author | Nick White <git@njw.name> | 2021-11-02 11:08:21 +0000 |
---|---|---|
committer | Nick White <git@njw.name> | 2021-11-02 11:08:21 +0000 |
commit | 33c0d65d3e9bf90cc8b462878b253bbbdc936435 (patch) | |
tree | f362acda1bae4ec7d355485c5678ce11f39da64d | |
parent | 9d6acd8df4d422cb49b7782222f3f19ee48e5f48 (diff) |
rescribe: handle directories with spaces correctly
-rw-r--r-- | cmd/rescribe/main.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/rescribe/main.go b/cmd/rescribe/main.go index 3944ace..03d9663 100644 --- a/cmd/rescribe/main.go +++ b/cmd/rescribe/main.go @@ -244,7 +244,7 @@ These training files are included in rescribe, and are always available: } bookdir := flag.Arg(0) - bookname := filepath.Base(bookdir) + bookname := strings.ReplaceAll(filepath.Base(bookdir), " ", "_") savedir := bookdir if flag.NArg() > 1 { savedir = flag.Arg(1) |