refactor: finish moving ssh-* scripts to own installers
[webi-installers/.git] / vim-go / install.ps1
index c77e39acdc9b1a7fe043f7cb7be26bb0e649c77a..617ae33479b938b06535ca7a142dafe2af90c4cd 100644 (file)
@@ -1,7 +1,6 @@
 #!/usr/bin/env pwsh
 
-IF (!(Test-Path -Path "$Env:USERPROFILE\.vim\pack\plugins\start")) {
-    New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory
-}
+New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force | out-null
+
 Remove-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start\vim-go" -Recurse -ErrorAction Ignore
 & git clone --depth=1 https://github.com/fatih/vim-go.git "$Env:USERPROFILE\.vim\pack\plugins\start\vim-go"