X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=serviceman%2Finstall.ps1;h=6ab3b44a37e402afd9df06a5b691b5d16038efa1;hb=e7dad6227425d813b17dadd6138cdffbc3341d8b;hp=2eec924919b5aca4f8bb1eaff4354c42bded1db5;hpb=dbeef945f552f6554d78e644d3e0b5ca9f6603e1;p=webi-installers%2F.git diff --git a/serviceman/install.ps1 b/serviceman/install.ps1 index 2eec924..6ab3b44 100644 --- a/serviceman/install.ps1 +++ b/serviceman/install.ps1 @@ -15,10 +15,11 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\serviceman-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\serviceman-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" -$pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" +New-Item "$Env:USERPROFILE\Downloads\webi" -ItemType Directory -Force | out-null +$pkg_download = "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE" # Fetch archive -IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE")) +IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE")) { # TODO: arch detection echo "Downloading serviceman from $Env:WEBI_PKG_URL to $pkg_download" @@ -45,7 +46,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 -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\serviceman.exe" -Destination "$pkg_src_bin" # Exit tmp