1
0
mirror of https://github.com/jaapbrasser/SharedScripts.git synced 2025-12-24 21:51:38 +02:00

Fixed Path

This commit is contained in:
Jaap Brasser
2019-10-03 15:20:29 -06:00
parent 7ffe5dcd97
commit 84dc92de8f

View File

@@ -3,7 +3,7 @@ function New-GitHubMarkdownIndex {
$Path = 'C:\Temp\Events',
$GitHubUri = 'https://github.com/jaapbrasser/events/tree/master'
)
get-childitem | % {
get-childitem -LiteralPath $Path | % {
$GHPath = $_.FullName -replace [regex]::Escape($Path) -replace '\\','/' -replace '\s','%20'
"* [$(Split-Path $_ -Leaf)]($GitHubUri$GHPath)"
$_ | ls -recurse | ? {$_.PSIsContainer -or $_.Extension -eq '.md'} | select -exp fullname | % {