You've already forked SharedScripts
mirror of
https://github.com/jaapbrasser/SharedScripts.git
synced 2025-12-24 21:51:38 +02:00
Fixed Path
This commit is contained in:
@@ -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 | % {
|
||||
|
||||
Reference in New Issue
Block a user