From 8a0eed22fad0f941e71e29105d3847b0555efbc8 Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Fri, 2 Feb 2024 12:48:37 +0200 Subject: [PATCH] update ghupdate to use the config executable name when excluding the update note from the release notes --- plugins/ghupdate/ghupdate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/ghupdate/ghupdate.go b/plugins/ghupdate/ghupdate.go index 1c3d3bd8..f85a771c 100644 --- a/plugins/ghupdate/ghupdate.go +++ b/plugins/ghupdate/ghupdate.go @@ -97,8 +97,8 @@ func Register(app core.App, rootCmd *cobra.Command, config Config) error { type plugin struct { app core.App - currentVersion string config Config + currentVersion string } func (p *plugin) updateCmd() *cobra.Command { @@ -252,7 +252,7 @@ func (p *plugin) update(withBackup bool) error { fmt.Print("\n") color.Cyan("Here is a list with some of the %s changes:", latest.Tag) // remove the update command note to avoid "stuttering" - releaseNotes := strings.TrimSpace(strings.Replace(latest.Body, "> _To update the prebuilt executable you can run `./pocketbase update`._", "", 1)) + releaseNotes := strings.TrimSpace(strings.Replace(latest.Body, "> _To update the prebuilt executable you can run `./"+p.config.ArchiveExecutable+" update`._", "", 1)) color.Cyan(releaseNotes) fmt.Print("\n") }