Skip to content
This repository was archived by the owner on Jul 16, 2026. It is now read-only.

Commit d0c2686

Browse files
fix
1 parent 247a327 commit d0c2686

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

scripts/helpers/Build/Add-ContentFromItem.ps1

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@
2222
[Parameter(Mandatory)]
2323
[string] $RootPath
2424
)
25-
$relativeFolderPath = $Path.Replace($RootPath, '').TrimStart($pathSeparator)
25+
# Get the path separator for the current OS
26+
$pathSeparator = [System.IO.Path]::DirectorySeparatorChar
27+
28+
$relativeFolderPath = $Path.Replace($RootPath, '')
29+
$relativeFolderPath = $relativeFolderPath.TrimStart($pathSeparator)
30+
$relativeFolderPath = $relativeFolderPath.Replace($pathSeparator, ' - ')
2631

2732
Add-Content -Path $RootModuleFilePath -Force -Value @"
2833
#region - From $relativeFolderPath

0 commit comments

Comments
 (0)