From 17420c05bce5316c55d92e6cef13017f4a8b0de8 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Mon, 23 Mar 2026 10:40:59 -0400 Subject: [PATCH] hvsp: add check to make sure name is defined Signed-off-by: Hugo Villeneuve --- scripts/kernel-send-patches.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/kernel-send-patches.sh b/scripts/kernel-send-patches.sh index 16d260c..b4feeca 100755 --- a/scripts/kernel-send-patches.sh +++ b/scripts/kernel-send-patches.sh @@ -152,6 +152,11 @@ if [ x"${commit_end}" = x"" ]; then exit 1 fi +if [ x"${name}" = x"" ]; then + echo "Missing name tag" + exit 1 +fi + if [ x"${cover}" = x"yes" ]; then if [ x"${series}" = x"" ]; then echo "Missing series shell variable" @@ -271,7 +276,7 @@ rm -rf ${srcdir}/*.patch # If the cover letter is not between start and end commits, save a copy: cp ${srcdir}/cover-letter.txt /tmp -patches_branch="hv_send_patches_$(basename ${srcdir})" +patches_branch="hv_send_patches_${name}" if [ x"${series}" != x"" ]; then patches_branch="${patches_branch}_v${series}" -- 2.47.3