mirror of
https://github.com/safing/portbase
synced 2025-09-02 02:29:59 +00:00
fix CheckVersion assuming license is set by the build script
This commit is contained in:
parent
ff5e461b84
commit
045eedc978
1 changed files with 2 additions and 3 deletions
|
@ -99,12 +99,11 @@ func CheckVersion() error {
|
||||||
return nil // testing on windows
|
return nil // testing on windows
|
||||||
default:
|
default:
|
||||||
// check version information
|
// check version information
|
||||||
if name == "[NAME]" {
|
if name == "[NAME]" || license == "[license unknown]" {
|
||||||
return errors.New("must call SetInfo() before calling CheckVersion()")
|
return errors.New("must call SetInfo() before calling CheckVersion()")
|
||||||
}
|
}
|
||||||
|
|
||||||
if version == "[version unknown]" ||
|
if version == "[version unknown]" {
|
||||||
license == "[license unknown]" {
|
|
||||||
return errors.New("please build using the supplied build script.\n$ ./build {main.go|...}")
|
return errors.New("please build using the supplied build script.\n$ ./build {main.go|...}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue