mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-02-07 19:40:31 +02:00
update ghupdate to use the config executable name when excluding the update note from the release notes
This commit is contained in:
parent
3b6fcf265a
commit
8a0eed22fa
@ -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")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user