X-Git-Url: https://git.josue.xyz/?a=blobdiff_plain;f=rg%2Finstall.ps1;h=3e8bf670cb6be783d21e38be5f09d6e0a3a9b525;hb=894562bc0c2e40cfdc36ee3ca293a354a04786d0;hp=d0642e29f9a5a493d065bfebad3c9b547f57e9d5;hpb=b944f3cb2597fac8225446ba9fbc110790c59c74;p=webi-installers%2F.git diff --git a/rg/install.ps1 b/rg/install.ps1 index d0642e2..3e8bf67 100644 --- a/rg/install.ps1 +++ b/rg/install.ps1 @@ -15,11 +15,11 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\ripgrep-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\ripgrep-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" -New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null -$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 ripgrep from $Env:WEBI_PKG_URL to $pkg_download"