X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;ds=sidebyside;f=_webi%2Ftemplate.ps1;h=71d4f8249b7a853cdec8d6b9c40b1975f1e11b20;hb=2f67e128007163f8b9e098f42fd06bfdfaeccd4f;hp=121eea057418bb571dc29baa67346b2c7d890599;hpb=9ee3af1afbb78333a74788ae1642ef539e2b80df;p=webi-installers%2F.git diff --git a/_webi/template.ps1 b/_webi/template.ps1 index 121eea0..71d4f82 100644 --- a/_webi/template.ps1 +++ b/_webi/template.ps1 @@ -21,19 +21,10 @@ $Env:WEBI_HOST = 'https://webinstall.dev' # Switch to userprofile pushd $Env:USERPROFILE -# Make paths if needed -if (!(Test-Path -Path Downloads)) -{ - New-Item -Path Downloads -ItemType Directory -Force -} -if (!(Test-Path -Path .local\bin)) -{ - New-Item -Path .local\bin -ItemType Directory -Force -} -if (!(Test-Path -Path .local\opt)) -{ - New-Item -Path .local\opt -ItemType Directory -Force -} +# Make paths +New-Item -Path Downloads -ItemType Directory -Force | out-null +New-Item -Path .local\bin -ItemType Directory -Force | out-null +New-Item -Path .local\opt -ItemType Directory -Force | out-null # {{ baseurl }} # {{ version }}