]> Untitled Git - hvutilities.git/commitdiff
hvsp: add check to make sure name is defined
authorHugo Villeneuve <hugo@hugovil.com>
Mon, 23 Mar 2026 14:40:59 +0000 (10:40 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Mon, 23 Mar 2026 18:31:16 +0000 (14:31 -0400)
Signed-off-by: Hugo Villeneuve <hugo@hugovil.com>
scripts/kernel-send-patches.sh

index 16d260c075f0baf672bbd6dd4878180ed3a5473f..b4feeca395c347a1a72692bb89f18977dfabab20 100755 (executable)
@@ -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}"