From 4bb6e269acf9b63bca73a4502a9a163aef13d96c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bosdonnat?= Date: Fri, 15 Nov 2024 11:16:23 +0100 Subject: [PATCH] Remove the line end in the local timezone During the installation, there was a message indicating that the timezone from the host couldn't be set in the container. This was due to no removing the line end from the command output. --- shared/utils/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/utils/utils.go b/shared/utils/utils.go index b271cd58d..e0c002a59 100644 --- a/shared/utils/utils.go +++ b/shared/utils/utils.go @@ -258,7 +258,7 @@ func GetLocalTimezone() string { if err != nil { log.Fatal().Err(err).Msgf(L("Failed to run %s"), "timedatectl show --value -p Timezone") } - return string(out) + return strings.TrimSpace(string(out)) } // IsEmptyDirectory return true if a given directory is empty.