From 2d24383fbfef83e2c7c91a1f878a2035154b213f Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Fri, 16 Dec 2016 19:39:57 +0100 Subject: [PATCH] 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) --- scripts/release/publish-build-artifacts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release/publish-build-artifacts.sh b/scripts/release/publish-build-artifacts.sh index 2e6d9af50ac..908ddd10f80 100755 --- a/scripts/release/publish-build-artifacts.sh +++ b/scripts/release/publish-build-artifacts.sh @@ -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"