cleanup: use -Force making directories
[webi-installers/.git] / _webi / bootstrap.ps1
index f707248442f93e7d63bd1e2397117f2044edeaa1..0060fab4097432f625efd8406adff1041db281df 100644 (file)
@@ -1,5 +1,5 @@
 # Download the latest webi, then install {{ exename }}
-IF (!(Test-Path -Path .local\bin)) { New-Item -Path .local\bin -ItemType Directory }
+New-Item -Path .local\bin -ItemType Directory -Force
 IF ($Env:WEBI_HOST -eq $null -or $Env:WEBI_HOST -eq "") { $Env:WEBI_HOST = "https://webinstall.dev" }
 curl.exe -s -A "windows" "$Env:WEBI_HOST/packages/_webi/webi.ps1" -o "$Env:USERPROFILE\.local\bin\webi.ps1"
 Set-ExecutionPolicy -Scope Process Bypass