From 48a00b4d3faede2a58259b55f1668e54a11cb3de Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 24 Aug 2020 17:34:19 +0200 Subject: [PATCH] Use releases instead of tags to download PowerShell PhpManager I just started to publish PhpManager to GitHub Releases too --- src/scripts/win32.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index 8b5509ee..5c7931d6 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -76,7 +76,7 @@ Function Get-CleanPSProfile { # Function to install PhpManager. Function Install-PhpManager() { $repo = "mlocati/powershell-phpmanager" - $tag = (Invoke-RestMethod https://api.github.com/repos/$repo/tags)[0].Name + $tag = (Invoke-RestMethod https://api.github.com/repos/$repo/releases/latest).tag_name $module_path = "$bin_dir\PhpManager\powershell-phpmanager-$tag\PhpManager\PhpManager.psm1" if(-not (Test-Path $module_path -PathType Leaf)) { $zip_file = "$bin_dir\PhpManager.zip"