cleanup: */install.ps1 add out-null to all New-Item calls
[webi-installers/.git] / watchexec / install.ps1
index 7e53bb55161636640955552df6eb1db26a1cea6d..375e786202cb59c2401d42384ee3c142b6cb4e6e 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 | out-null
         Move-Item -Path ".\watchexec-*\watchexec.exe" -Destination "$pkg_src_bin"
 
     # Exit tmp
@@ -51,5 +51,5 @@ IF (!(Test-Path -Path "$pkg_src_cmd"))
 }
 
 echo "Copying into '$pkg_dst_cmd' from '$pkg_src_cmd'"
-Remove-Item -Path "$pkg_dst_cmd" -Recurse -ErrorAction Ignore
+Remove-Item -Path "$pkg_dst_cmd" -Recurse -ErrorAction Ignore | out-null
 Copy-Item -Path "$pkg_src" -Destination "$pkg_dst" -Recurse