summaryrefslogtreecommitdiffstats
path: root/install.ps1
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2020-10-27 01:46:43 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2020-10-27 11:07:27 +0900
commit552414978ed74e7cd77bd57874f6fbbe3e0024c4 (patch)
treeffb8cb0796983c6e56c4f47a3216697386f3482e /install.ps1
parent607081bbaab228f41ebfe1f7aa0e993ab134c205 (diff)
0.24.0-rc10.24.0-rc1
Diffstat (limited to 'install.ps1')
-rw-r--r--install.ps118
1 files changed, 6 insertions, 12 deletions
diff --git a/install.ps1 b/install.ps1
index 773421fe..855a6f34 100644
--- a/install.ps1
+++ b/install.ps1
@@ -1,4 +1,4 @@
-$version="0.23.1"
+$version="0.24.0-rc1"
$fzf_base=Split-Path -Parent $MyInvocation.MyCommand.Definition
@@ -26,12 +26,10 @@ function check_binary () {
function download {
param($file)
Write-Host "Downloading bin/fzf ..."
- if ("$version" -ne "alpha") {
- if (Test-Path "$fzf_base\bin\fzf.exe") {
- Write-Host " - Already exists"
- if (check_binary) {
- return
- }
+ if (Test-Path "$fzf_base\bin\fzf.exe") {
+ Write-Host " - Already exists"
+ if (check_binary) {
+ return
}
}
if (-not (Test-Path "$fzf_base\bin")) {
@@ -42,11 +40,7 @@ function download {
return
}
cd "$fzf_base\bin"
- if ("$version" -eq "alpha") {
- $url="https://github.com/junegunn/fzf-bin/releases/download/alpha/$file"
- } else {
- $url="https://github.com/junegunn/fzf-bin/releases/download/$version/$file"
- }
+ $url="https://github.com/junegunn/fzf/releases/download/$version/$file"
$temp=$env:TMP + "\fzf.zip"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
(New-Object Net.WebClient).DownloadFile($url, $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath("$temp"))