We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dc899a commit b22213aCopy full SHA for b22213a
tools/ccli/repoinit/repoinit.go
@@ -37,12 +37,12 @@ func Run(settings Settings) error {
37
}
38
if err := spinner.Run("Create main program files", func() error {
39
copyFile := func(source, destination string) error {
40
- templateFile, err := templatesFS.Open(filepath.Join("templates", source))
+ templateFile, err := templatesFS.Open(path.Join("templates", source))
41
if err != nil {
42
return fmt.Errorf("failed to open template file: %w", err)
43
44
defer templateFile.Close()
45
- file, err := os.Create(path.Join(settings.Directory, destination))
+ file, err := os.Create(filepath.Join(settings.Directory, destination))
46
47
return fmt.Errorf("failed to create file: %w", err)
48
0 commit comments