projects
/
webi-installers
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dbeef94
)
*/install.ps1: more cleanup
author
AJ ONeal
<aj@therootcompany.com>
Mon, 26 Apr 2021 05:14:00 +0000
(
05:14
+0000)
committer
AJ ONeal
<aj@therootcompany.com>
Mon, 26 Apr 2021 05:14:00 +0000
(
05:14
+0000)
_webi/template.ps1
patch
|
blob
|
history
diff --git
a/_webi/template.ps1
b/_webi/template.ps1
index 42e0c6b878a11fea88bc6ecc2392f96a94cdf08d..71d4f8249b7a853cdec8d6b9c40b1975f1e11b20 100644
(file)
--- a/
_webi/template.ps1
+++ b/
_webi/template.ps1
@@
-21,19
+21,10
@@
$Env:WEBI_HOST = 'https://webinstall.dev'
# Switch to userprofile
pushd $Env:USERPROFILE
# Switch to userprofile
pushd $Env:USERPROFILE
-# Make paths if needed
-
-
+# Make paths
New-Item -Path Downloads -ItemType Directory -Force | out-null
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 }}
# {{ baseurl }}
# {{ version }}