aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacien2013-07-10 21:47:02 +0200
committerPacien2013-07-10 21:47:02 +0200
commitbafbd4a6aa831230e65659ee58919cd8b824ccf4 (patch)
tree80c47f6442a92afc1c0e6992e94dd44b80bcfea1
parentdcc7ce85494507e84008c32186ce3c5361100f2e (diff)
downloadfoldaweb-bafbd4a6aa831230e65659ee58919cd8b824ccf4.tar.gz
Fix relative path trimming
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.go b/main.go
index a090980..14a3be3 100644
--- a/main.go
+++ b/main.go
@@ -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
55func main() { 57func main() {