Skip to content

Commit

Permalink
Remove the line end in the local timezone
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cbosdo committed Nov 18, 2024
1 parent e9670ef commit 4bb6e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4bb6e26

Please sign in to comment.