bugfix(Windows): make sure ~/Downloads exists
[webi-installers/.git] / rg / install.ps1
index 190f8b959ff2c43b56c3ec967d6b6f4db508f1c2..d0642e29f9a5a493d065bfebad3c9b547f57e9d5 100644 (file)
@@ -15,6 +15,7 @@ $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"
 
 # Fetch archive