cleanup: shfmt, shellcheck, and whitespace
[webi-installers/.git] / caddy / install.ps1
index f8fddb7b828b3cc26a27e30f1ac78b4dfcd90029..76de03a8222f0412a74e21001bd6873cdbd5e207 100644 (file)
@@ -33,7 +33,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 ".\caddy-v*" -Recurse -ErrorAction Ignore
     Remove-Item -Path ".\caddy.exe" -Recurse -ErrorAction Ignore
 
@@ -52,6 +52,6 @@ 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
 New-Item "$pkg_dst_bin" -ItemType Directory -Force
 Copy-Item -Path "$pkg_src" -Destination "$pkg_dst" -Recurse