From 3730bc6d9fb7c9453aabb7cd6dbb3b8d4c52acda Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Mon, 23 Mar 2026 16:29:49 -0400 Subject: [PATCH] hvsp: autodefine commit_start/end from name variable Signed-off-by: Hugo Villeneuve --- scripts/kernel-send-patches.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/scripts/kernel-send-patches.sh b/scripts/kernel-send-patches.sh index b4df889..d7b34ef 100755 --- a/scripts/kernel-send-patches.sh +++ b/scripts/kernel-send-patches.sh @@ -159,19 +159,17 @@ fi source ${srcdir}/infos.sh -if [ x"${commit_start}" = x"" ]; then - echo "Missing start commit message" +if [ x"${name}" = x"" ]; then + echo "Missing name tag" exit 1 fi -if [ x"${commit_end}" = x"" ]; then - echo "Missing end commit message" - exit 1 +if [ x"${commit_start}" = x"" ]; then + commit_start="start ${name}" fi -if [ x"${name}" = x"" ]; then - echo "Missing name tag" - exit 1 +if [ x"${commit_end}" = x"" ]; then + commit_end="end ${name}" fi if [ x"${cover}" = x"yes" ]; then -- 2.47.3