Merge branch 'main' into fix/bundle-logrotate

This commit is contained in:
Theodor Midtlien
2026-06-04 16:04:12 +02:00
committed by GitHub
130 changed files with 3398 additions and 1707 deletions

View File

@@ -12,7 +12,13 @@ var (
Short: "Print the NetBird's client application version",
Run: func(cmd *cobra.Command, args []string) {
cmd.SetOut(cmd.OutOrStdout())
cmd.Println(version.NetbirdVersion())
out := version.NetbirdVersion()
if version.IsDevelopmentVersion(out) {
if commit := version.NetbirdCommit(); commit != "" {
out += "-" + commit
}
}
cmd.Println(out)
},
}
)