Only append -dev when vcs.modified is true
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2022-07-20 19:58:10 +02:00
parent 0c4bd412c9
commit 6138bece53
Signed by: DataHoarder
SSH key fingerprint: SHA256:OLTRf6Fl87G52SiR7sWLGNzlJt4WOX+tfI2yxo0z7xk

View file

@ -726,7 +726,7 @@ func main() {
for _, s := range dInfo.Settings {
if s.Key == "vcs.revision" {
programVersion = s.Value
} else if s.Key == "vcs.modified" {
} else if s.Key == "vcs.modified" && s.Value == "true" {
programVersion += "-dev"
}
}