From f0f4bd60cee102ae0da09a8b1eabd4f0fce100e2 Mon Sep 17 00:00:00 2001 From: Nathan JANCZEWSKI Date: Thu, 19 Dec 2024 21:08:52 +0100 Subject: [PATCH] fix(admin): Displaying short hash instead of fullsize --- backend/cmd/root.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/cmd/root.go b/backend/cmd/root.go index ac8e7de..cdf2420 100644 --- a/backend/cmd/root.go +++ b/backend/cmd/root.go @@ -94,6 +94,10 @@ var rootCmd = &cobra.Command{ } } + if len(utils.CURRENT_COMMIT) > 7 { + utils.CURRENT_COMMIT = utils.CURRENT_COMMIT[:7] + } + state.STATE.GuestsAllowed = config.GET.GuestsAllowed state.STATE.HardwareId = config.GET.HardwareID state.STATE.Version = utils.CURRENT_VERSION