Skip to content

Commit c93c530

Browse files
committed
pack firmware: rm newlines from description
1 parent b456466 commit c93c530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build_firmwarezip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def makezip(source, target, env):
4848

4949
# Get and clean the current commit message
5050
try:
51-
version_desc = subprocess.check_output(["git", "log", "-1", "--pretty=%B"], universal_newlines=True).strip().replace('"', '')
51+
version_desc = subprocess.getoutput("git log -1 --pretty=%B | tr '\n' ' '")
5252
except subprocess.CalledProcessError as e:
5353
# Revert to full version if no commit msg or error
5454
version_desc = version['FN_VERSION_FULL']

0 commit comments

Comments
 (0)