From df182be21f34de1db8407e7d558fcf9297a0a0bc Mon Sep 17 00:00:00 2001 From: amadeo-alex <68441479+amadeo-alex@users.noreply.github.com> Date: Tue, 30 Nov 2021 05:24:36 +0100 Subject: [PATCH] Fix log commit hash newline (#9897) * Added trim operation before commitHash is returned * Update utils.ts Co-authored-by: Koen Kanters --- lib/util/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/util/utils.ts b/lib/util/utils.ts index 83152038..7492fe1f 100644 --- a/lib/util/utils.ts +++ b/lib/util/utils.ts @@ -70,6 +70,7 @@ async function getZigbee2MQTTVersion(includeCommitHash=true): Promise<{commitHas commitHash = commit.shortHash; } + commitHash = commitHash.trim(); resolve({commitHash, version}); }); });