X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=_example%2Finstall.ps1;h=9f08cd257bc0f06dd424415e9604d17944e1e7f5;hb=bec1c7f807231f3a13f2b1ff88a00495956c1491;hp=9a2744e8c668f54cf783d57379011df5a24fc600;hpb=fa753e15b9b048f3ed82fdaf2a7a0cfd7f37ac3d;p=webi-installers%2F.git diff --git a/_example/install.ps1 b/_example/install.ps1 index 9a2744e..9f08cd2 100644 --- a/_example/install.ps1 +++ b/_example/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 ".\foobar-v*" -Recurse -ErrorAction Ignore Remove-Item -Path ".\foo.exe" -Recurse -ErrorAction Ignore @@ -46,11 +46,10 @@ 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 + New-Item "$pkg_src_bin" -ItemType Directory -Force Move-Item -Path ".\foobar-*\foo.exe" -Destination "$pkg_src_bin" # Exit tmp