mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
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:
committed by
Jeremy Elbourn
parent
9746d85114
commit
2d24383fbf
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user