cleanup: use -Force making directories
[webi-installers/.git] / watchexec / install.ps1
index 7e53bb55161636640955552df6eb1db26a1cea6d..3825abd0e0d5df4ab8a9469b08ca8d4971228648 100644 (file)
@@ -34,16 +34,16 @@ 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 ".\watchexec-v*" -Recurse -ErrorAction Ignore
         Remove-Item -Path ".\watchexec.exe" -Recurse -ErrorAction Ignore
 
         echo "Unpacking $pkg_download"
         & tar xf "$pkg_download"
-      
+
         # 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 ".\watchexec-*\watchexec.exe" -Destination "$pkg_src_bin"
 
     # Exit tmp