X-Git-Url: https://git.josue.xyz/?p=webi-installers%2F.git;a=blobdiff_plain;f=_webi%2Fwebi-pwsh.ps1;h=a8bec4cea012b5448fcbf60fa441e71896228a98;hp=f9aa66da0fb9777a26ae249863b8d572dec11192;hb=d68d0376b9cead7e1bf6446e71f00c8e3c965a45;hpb=89e0e89d8934850cf3a421034d8a21f15880d864 diff --git a/_webi/webi-pwsh.ps1 b/_webi/webi-pwsh.ps1 index f9aa66d..a8bec4c 100644 --- a/_webi/webi-pwsh.ps1 +++ b/_webi/webi-pwsh.ps1 @@ -59,7 +59,17 @@ if (!(Test-Path -Path .local\bin\pathman.exe)) # Run pathman to set up the folder # (using unix style path because... cmd vs powershell vs whatever) -& "$Env:USERPROFILE\.local\bin\pathman.exe" add ~/.local/bin +$has_local_bin = echo "$Env:PATH" | Select-String -Pattern '\.local.bin' +if (!$has_local_bin) +{ + Write-Host '' + Write-Host '**********************************' -ForegroundColor red -BackgroundColor white + Write-Host '* IMPORTANT -- READ ME *' -ForegroundColor red -BackgroundColor white + Write-Host '* (run the PATH command below) *' -ForegroundColor red -BackgroundColor white + Write-Host '**********************************' -ForegroundColor red -BackgroundColor white + Write-Host '' + & "$Env:USERPROFILE\.local\bin\pathman.exe" add ~/.local/bin +} # {{ baseurl }} # {{ version }}