X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=rg%2Finstall.ps1;h=190f8b959ff2c43b56c3ec967d6b6f4db508f1c2;hb=aa61db993471a5ec35fadbc050126735b9fc200a;hp=a721bb3e36b457044f46203d02371a755fd768ed;hpb=fa753e15b9b048f3ed82fdaf2a7a0cfd7f37ac3d;p=webi-installers%2F.git diff --git a/rg/install.ps1 b/rg/install.ps1 index a721bb3..190f8b9 100644 --- a/rg/install.ps1 +++ b/rg/install.ps1 @@ -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 ".\ripgrep-v*" -Recurse -ErrorAction Ignore Remove-Item -Path ".\rg.exe" -Recurse -ErrorAction Ignore @@ -42,11 +42,11 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Windows BSD-tar handles zip. Imagine that. 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 -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\ripgrep-*\rg.exe" -Destination "$pkg_src_bin" # Exit tmp @@ -54,5 +54,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