feat(cmd/joj3): no log on print version
Some checks failed
build / trigger-build-image (push) Blocked by required conditions
submodules sync / sync (push) Successful in 1m0s
build / build (push) Has been cancelled

This commit is contained in:
张泊明518370910136 2025-06-28 09:27:59 -04:00
parent e45277b876
commit b6592e655d
GPG Key ID: D47306D7062CDA9D

View File

@ -162,7 +162,7 @@ func main() {
slog.Error("main exit", "error", err)
exitCode = 1
}
if exitCode == 0 {
if !*printVersion && exitCode == 0 {
slog.Info("main exit", "status", "success")
}
os.Exit(exitCode)