]> Untitled Git - hvutilities.git/commitdiff
hvsp: autodefine commit_start/end from name variable
authorHugo Villeneuve <hugo@hugovil.com>
Mon, 23 Mar 2026 20:29:49 +0000 (16:29 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Tue, 24 Mar 2026 16:27:37 +0000 (12:27 -0400)
Signed-off-by: Hugo Villeneuve <hugo@hugovil.com>
scripts/kernel-send-patches.sh

index b4df88958c2ed117e1cc43e663301e5a56c1e60e..d7b34ef47fa03d3646a87f435a0cc50f8f1695be 100755 (executable)
@@ -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