mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-02-03 09:57:24 +02:00
added version check todo
This commit is contained in:
parent
4440b5f817
commit
7a41ff0127
@ -138,6 +138,8 @@ func (p *plugin) update(withBackup bool) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @todo consider using an external library OR update to check
|
||||||
|
// to handle cases like v0.16.2 >= v0.16.10
|
||||||
if strings.TrimPrefix(p.currentVersion, "v") >= strings.TrimPrefix(latest.Tag, "v") {
|
if strings.TrimPrefix(p.currentVersion, "v") >= strings.TrimPrefix(latest.Tag, "v") {
|
||||||
color.Green("You already have the latest PocketBase %s.", p.currentVersion)
|
color.Green("You already have the latest PocketBase %s.", p.currentVersion)
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user