cleanup: shfmt, shellcheck, and whitespace
[webi-installers/.git] / goreleaser / install.ps1
index 08f4716b7d345f7e9687457e855a5fecf5a392b2..e47706f5f813081d41b2ac22a7a56de97fcb8594 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
@@ -53,5 +53,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