fix path creation so it works on windows
License: MIT Signed-off-by: Jeromy <jeromyj@gmail.com>
Jeromy committed
Oct 20, 2015 at 20:24 UTC
2b937007da2afbcf2f548a82ca1b540e03d46846
1 file changed
+8
-8
assets/assets.go
+8
-8
@@ -16,12 +16,12 @@ import (
16
17
// initDocPaths lists the paths for the docs we want to seed during --init
18
var initDocPaths = []string{
19
- "init-doc/about",
20
- "init-doc/readme",
21
- "init-doc/help",
22
- "init-doc/contact",
23
- "init-doc/security-notes",
24
- "init-doc/quick-start",
19
+ filepath.Join("init-doc", "about"),
20
+ filepath.Join("init-doc", "readme"),
21
+ filepath.Join("init-doc", "help"),
22
+ filepath.Join("init-doc", "contact"),
23
+ filepath.Join("init-doc", "security-notes"),
24
+ filepath.Join("init-doc", "quick-start"),
25
}
26
27
// SeedInitDocs adds the list of embedded init documentation to the passed node, pins it and returns the root key
@@ -30,8 +30,8 @@ func SeedInitDocs(nd *core.IpfsNode) (*key.Key, error) {
30
}
31
32
var initDirIndex = []string{
33
- "../vendor/dir-index-html-v1.0.0/knownIcons.txt",
34
- "../vendor/dir-index-html-v1.0.0/dir-index.html",
33
+ filepath.Join("..", "vendor", "dir-index-html-v1.0.0", "knownIcons.txt"),
34
+ filepath.Join("..", "vendor", "dir-index-html-v1.0.0", "dir-index.html"),
35
}
36
37
func SeedInitDirIndex(nd *core.IpfsNode) (*key.Key, error) {