make update-version: always update all relevant files

Fix an issue where `make update-version` would only update the first set
of files it could, and skip the remaining ones.

Only relevant for developers.
This commit is contained in:
Sybren A. Stüvel 2024-10-01 23:12:49 +02:00
parent 6f38ac75ea
commit 453c572916

View File

@ -31,9 +31,9 @@ func main() {
var anyFileWasChanged bool var anyFileWasChanged bool
if cliArgs.updateMakefile { if cliArgs.updateMakefile {
anyFileWasChanged = anyFileWasChanged || updateMakefile() anyFileWasChanged = updateMakefile() || anyFileWasChanged
} }
anyFileWasChanged = anyFileWasChanged || updateAddon() anyFileWasChanged = updateAddon() || anyFileWasChanged
if !anyFileWasChanged { if !anyFileWasChanged {
log.Warn().Msg("nothing changed") log.Warn().Msg("nothing changed")