X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=serviceman%2Finstall.ps1;h=6ab3b44a37e402afd9df06a5b691b5d16038efa1;hb=4edf137e5d6b65f9ac847db6694ac387c7e91f3e;hp=8efa0abeaff03bcfc10d48abd1f8623f41b80fc7;hpb=3f64f8b9c513da3aa4d10e3344426dbb3f817d5e;p=webi-installers%2F.git diff --git a/serviceman/install.ps1 b/serviceman/install.ps1 index 8efa0ab..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"