X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=_webi%2Fwebi-pwsh.ps1;h=f9aa66da0fb9777a26ae249863b8d572dec11192;hb=3f64f8b9c513da3aa4d10e3344426dbb3f817d5e;hp=8fca7f2839b06bf38e3a0a68354a9ef6ba8e7130;hpb=2073a1eeebdcd30ffaddaf40e7c4940361bd5a08;p=webi-installers%2F.git diff --git a/_webi/webi-pwsh.ps1 b/_webi/webi-pwsh.ps1 index 8fca7f2..f9aa66d 100644 --- a/_webi/webi-pwsh.ps1 +++ b/_webi/webi-pwsh.ps1 @@ -25,9 +25,9 @@ $exename = $args[0] pushd $Env:USERPROFILE # Make paths if needed -New-Item -Path .local\bin -ItemType Directory -Force +New-Item -Path .local\bin -ItemType Directory -Force | out-null # TODO replace all xbin with opt\bin\ -New-Item -Path .local\xbin -ItemType Directory -Force +New-Item -Path .local\xbin -ItemType Directory -Force | out-null # See note on Set-ExecutionPolicy above Set-Content -Path .local\bin\webi.bat -Value "@echo off`r`npushd %USERPROFILE%`r`npowershell -ExecutionPolicy Bypass .local\bin\webi-pwsh.ps1 %1`r`npopd" @@ -35,12 +35,12 @@ Set-Content -Path .local\bin\webi.bat -Value "@echo off`r`npushd %USERPROFILE%`r Remove-Item -Path .local\bin\webi.ps1 -Recurse -ErrorAction Ignore if (!(Test-Path -Path .local\opt)) { - New-Item -Path .local\opt -ItemType Directory -Force + New-Item -Path .local\opt -ItemType Directory -Force | out-null } # TODO windows version of mktemp -d if (!(Test-Path -Path .local\tmp)) { - New-Item -Path .local\tmp -ItemType Directory -Force + New-Item -Path .local\tmp -ItemType Directory -Force | out-null } # TODO SetStrictMode