Skip to content

Commit 5832e47

Browse files
author
Dominik Przybyl
committed
fixed issue that dir name or file name starts with dot character (project scaffold command)
1 parent cd7a344 commit 5832e47

File tree

3 files changed

+1
-1
lines changed

3 files changed

+1
-1
lines changed

pkg/project.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func copyEmbedFiles(efs *embed.FS, dirPrefix string) error {
9393
if err != nil {
9494
return err
9595
}
96-
if err := filex.Write(strings.TrimPrefix(path, dirPrefix), bytes); err != nil {
96+
if err := filex.Write(strings.TrimPrefix(strings.ReplaceAll(path, "$", ""), dirPrefix), bytes); err != nil {
9797
return err
9898
}
9999
return nil

0 commit comments

Comments
 (0)