X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=watchexec%2Finstall.ps1;h=375e786202cb59c2401d42384ee3c142b6cb4e6e;hb=2aef71f4c99b2b89d90a6bb471cfdeba25ba4ded;hp=7e53bb55161636640955552df6eb1db26a1cea6d;hpb=8973d951e41765636b3e85b8453d8573b7149015;p=webi-installers%2F.git diff --git a/watchexec/install.ps1 b/watchexec/install.ps1 index 7e53bb5..375e786 100644 --- a/watchexec/install.ps1 +++ b/watchexec/install.ps1 @@ -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