diff options
author | Pacien | 2013-07-10 21:47:02 +0200 |
---|---|---|
committer | Pacien | 2013-07-10 21:47:02 +0200 |
commit | bafbd4a6aa831230e65659ee58919cd8b824ccf4 (patch) | |
tree | 80c47f6442a92afc1c0e6992e94dd44b80bcfea1 | |
parent | dcc7ce85494507e84008c32186ce3c5361100f2e (diff) | |
download | foldaweb-bafbd4a6aa831230e65659ee58919cd8b824ccf4.tar.gz |
Fix relative path trimming
-rw-r--r-- | main.go | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -50,6 +50,8 @@ func init() { | |||
50 | for i, ext := range settings.exts { | 50 | for i, ext := range settings.exts { |
51 | settings.exts[i] = "." + strings.Trim(ext, ". ") | 51 | settings.exts[i] = "." + strings.Trim(ext, ". ") |
52 | } | 52 | } |
53 | *settings.sourceDir = strings.TrimPrefix(*settings.sourceDir, "./") | ||
54 | *settings.outputDir = strings.TrimPrefix(*settings.outputDir, "./") | ||
53 | } | 55 | } |
54 | 56 | ||
55 | func main() { | 57 | func main() { |