From 9421820a7bb64dd422044c50d1c501d3c374995f Mon Sep 17 00:00:00 2001 From: Tomasz Kostrzewa Date: Wed, 6 Mar 2024 00:05:10 +0100 Subject: [PATCH] modified: RdzeN-Profile.ps1 --- RdzeN-Profile.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RdzeN-Profile.ps1 b/RdzeN-Profile.ps1 index f0e45da..8159d62 100644 --- a/RdzeN-Profile.ps1 +++ b/RdzeN-Profile.ps1 @@ -104,8 +104,8 @@ if ($functions_to_pull.Count -gt 0) { # 4. List functions $functions = Get-ChildItem $path_gitea_powershell_profile_functions | Sort-Object -for ($i = 1; $i -eq $functions.Count; $i++) { - Write-Host "$i" -NoNewline -ForegroundColor Cyan +for ($i = 0; $i -lt $functions.Count; $i++) { + Write-Host "$($i+1)" -NoNewline -ForegroundColor Cyan Write-Host ")`t" -NoNewline -ForegroundColor Blue Write-Host "$(($functions[$i].Name).Replace('.ps1',''))" -ForegroundColor Cyan }