Skip to content

Commit 2d24383

Browse files
devversionjelbourn
authored andcommitted
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)
1 parent 9746d85 commit 2d24383

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/release/publish-build-artifacts.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ buildVersion=$(sed -nE 's/^\s*"version": "(.*?)",$/\1/p' package.json)
1414
commitSha=$(git rev-parse --short HEAD)
1515
commitAuthorName=$(git --no-pager show -s --format='%an' HEAD)
1616
commitAuthorEmail=$(git --no-pager show -s --format='%ae' HEAD)
17-
commitMessage=$(git log --oneline | head -n1)
17+
commitMessage=$(git log --oneline -n 1)
1818

1919
repoName="material-builds"
2020
repoUrl="http://github.com/DevVersion/material-builds.git"

0 commit comments

Comments
 (0)