File tree 1 file changed +5
-7
lines changed
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,11 @@ function readFiles(directory, filelist) {
35
35
filelist = readFiles ( directory + file + '/' , filelist ) ;
36
36
} else {
37
37
const originalPath = directory + file ;
38
- const newPath = outputPath + originalPath
38
+ const newPath = path . join ( outputPath , originalPath
39
39
. replace ( documentationPath + '/' , '' )
40
- . replace ( '/' , '-' ) ;
41
- filelist . push ( {
42
- originalPath,
43
- newPath
44
- } ) ;
40
+ . replace ( '/' , '-' ) ) ;
41
+
42
+ filelist . push ( { originalPath, newPath } ) ;
45
43
}
46
44
} ) ;
47
45
return filelist ;
@@ -99,7 +97,7 @@ Promise.resolve()
99
97
. then ( ( ) => console . log ( `Documentation Path: ${ documentationPath } ` ) )
100
98
. then ( ( ) => console . log ( `Wiki path: ${ outputPath } ` ) )
101
99
. then ( ( ) => console . log ( 'Cloning...' ) )
102
- . then ( ( ) => execute ( `git clone "https://github.com/angular/angular-cli.wiki" ${ outputPath } ` ) )
100
+ . then ( ( ) => execute ( `git clone "https://github.com/angular/angular-cli.wiki" " ${ outputPath } " ` ) )
103
101
. then ( ( ) => console . log ( 'Copying Files...' ) )
104
102
. then ( ( ) => createFiles ( ) )
105
103
. then ( ( ) => process . chdir ( outputPath ) )
You can’t perform that action at this time.
0 commit comments