Skip to content

Commit

Permalink
fix: trim extra slash
Browse files Browse the repository at this point in the history
Signed-off-by: manifestori <ori@manifestcyber.com>
  • Loading branch information
manifestori committed May 20, 2024
1 parent b8d6f03 commit 1003227
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 1003227

Please sign in to comment.