chore: fix sigpipe error for commit message (#2255)

* When retrieving the last commit message, the script currently pipes it through the head command.
  Since the git log command using the less command will exit immediately the pipe will fail with a 141 exit code (because it can't read from a closed stream)
This commit is contained in:
Paul Gschwendtner
2016-12-16 19:39:57 +01:00
committed by Jeremy Elbourn
parent 9746d85114
commit 2d24383fbf
+1 -1
View File
@@ -14,7 +14,7 @@ buildVersion=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)
commitSha=$(git rev-parse --short HEAD)
commitAuthorName=$(git --no-pager show -s --format='%an' HEAD)
commitAuthorEmail=$(git --no-pager show -s --format='%ae' HEAD)
commitMessage=$(git log --oneline | head -n1)
commitMessage=$(git log --oneline -n 1)
repoName="material-builds"
repoUrl="http://github.com/DevVersion/material-builds.git"