Skip to content

Commit

Permalink
fix: trim extra slash
Browse files Browse the repository at this point in the history
  • Loading branch information
manifestori committed May 20, 2024
1 parent 7ab49e4 commit f120855
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions builder/build_package.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ func BuildPackageSection(packageName string, dirRoot string, pathsIgnore []strin
} else {
newFilePatch = filepath.FromSlash(".\\" + fp)
}

if strings.HasPrefix(".\\\\", newFilePatch) {
newFilePatch = fmt.Sprintf(".\\%s", newFilePatch[3:])
}
} else {
newFilePatch = filepath.FromSlash("./" + fp)
}
Expand Down

0 comments on commit f120855

Please sign in to comment.