This is an automated email from the ASF dual-hosted git repository.
chia7712 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-release.git
The following commit(s) were added to refs/heads/master by this push:
new 2c5de32 [YUNIKORN-3444] Fix tail syntax in merge script (#241)
2c5de32 is described below
commit 2c5de32e3c0e65b9ce644d7bf760b5ccb6ed4b93
Author: andyhuangdev <[email protected]>
AuthorDate: Sun Sep 6 22:54:03 2026 +0800
[YUNIKORN-3444] Fix tail syntax in merge script (#241)
Use tail -n +2 to skip the first line portably on GNU and BSD tail.
Validation: bash -n, git diff --check, and five local tail input cases
passed.
Closes: #241
Signed-off-by: Chia-Ping Tsai <[email protected]>
---
release-tools/merge_pr.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/release-tools/merge_pr.sh b/release-tools/merge_pr.sh
index 541f505..fbaad6d 100755
--- a/release-tools/merge_pr.sh
+++ b/release-tools/merge_pr.sh
@@ -112,7 +112,7 @@ function create_body() {
for i in $(git rev-list HEAD.."${PRBRANCH}" --reverse); do
git log -1 --pretty=format:"%s%n%b" "$i" >> "${BODYFILE}"
done
- BODY=$(tail +2 "${BODYFILE}")
+ BODY=$(tail -n +2 "${BODYFILE}")
rm "${BODYFILE}"
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]