mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-08-18 00:17:14 +02:00
ignore version in dev
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
@@ -508,6 +508,10 @@ func (u *Update) verifySignature(binaryPath, sigPath string) error {
|
||||
}
|
||||
|
||||
func (u *Update) CheckUpdateVersion(currentVersion, latestVersion string) (bool, error) {
|
||||
if !build.Flags.Production {
|
||||
// ignroe version in development
|
||||
return false, nil
|
||||
}
|
||||
// The semver package expects versions to be prefixed with 'v'
|
||||
current := ensureVPrefix(currentVersion)
|
||||
latest := ensureVPrefix(latestVersion)
|
||||
|
||||
Reference in New Issue
Block a user