cleanup: use -Force making directories
[webi-installers/.git] / goreleaser / install.ps1
index 08f4716b7d345f7e9687457e855a5fecf5a392b2..68644cba39d11a83a4b05276813fee3acfd1f0d3 100644 (file)
@@ -34,7 +34,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd"))
     # Enter tmp
     pushd .local\tmp
 
-        # Remove any leftover tmp cruft 
+        # Remove any leftover tmp cruft
         Remove-Item -Path ".\goreleaser-v*" -Recurse -ErrorAction Ignore
         Remove-Item -Path ".\goreleaser.exe" -Recurse -ErrorAction Ignore
 
@@ -45,7 +45,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd"))
 
         # Settle unpacked archive into place
         echo "Install Location: $pkg_src_cmd"
-        New-Item "$pkg_src_bin" -ItemType Directory
+        New-Item "$pkg_src_bin" -ItemType Directory -Force
         Move-Item -Path ".\goreleaser.exe" -Destination "$pkg_src_bin"
 
     # Exit tmp