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 {
|
type plugin struct {
|
||||||
app core.App
|
app core.App
|
||||||
currentVersion string
|
|
||||||
config Config
|
config Config
|
||||||
|
currentVersion string
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p *plugin) updateCmd() *cobra.Command {
|
func (p *plugin) updateCmd() *cobra.Command {
|
||||||
|
@ -252,7 +252,7 @@ func (p *plugin) update(withBackup bool) error {
|
||||||
fmt.Print("\n")
|
fmt.Print("\n")
|
||||||
color.Cyan("Here is a list with some of the %s changes:", latest.Tag)
|
color.Cyan("Here is a list with some of the %s changes:", latest.Tag)
|
||||||
// remove the update command note to avoid "stuttering"
|
// 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)
|
color.Cyan(releaseNotes)
|
||||||
fmt.Print("\n")
|
fmt.Print("\n")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue