From: AJ ONeal <aj@therootcompany.com>
Date: Mon, 26 Apr 2021 05:14:00 +0000 (+0000)
Subject: */install.ps1: more cleanup
X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=76776e9d5403d59b2cd5cba16d84f819a56bc5aa;p=webi-installers%2F.git

*/install.ps1: more cleanup
---

diff --git a/_webi/template.ps1 b/_webi/template.ps1
index 42e0c6b..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
-
-
+# Make paths
 New-Item -Path Downloads -ItemType Directory -Force | out-null
-
-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
-}
+New-Item -Path .local\bin -ItemType Directory -Force | out-null
+New-Item -Path .local\opt -ItemType Directory -Force | out-null
 
 # {{ baseurl }}
 # {{ version }}