hvsp: make cc_list optional master
authorHugo Villeneuve <hugo@hugovil.com>
Mon, 6 Oct 2025 14:25:25 +0000 (10:25 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Mon, 6 Oct 2025 14:25:25 +0000 (10:25 -0400)
Signed-off-by: Hugo Villeneuve <hugo@hugovil.com>
scripts/kernel-send-patches.sh

index 6fa21e0..16d260c 100755 (executable)
@@ -164,11 +164,6 @@ if [ x"${cover}" = x"yes" ]; then
     fi
 fi
 
-if [ x"${cc_list}" = x"" ]; then
-    echo "Missing cc_list shell variable"
-    exit 1
-fi
-
 if [ x"${base_branch}" = x"" ]; then
     echo "Missing base_branch shell variable"
     exit 1
@@ -243,6 +238,10 @@ collect_email_addresses()
 
 add_cc_list_addresses()
 {
+    if [ x"${cc_list}" = x"" ]; then
+        return
+    fi
+
     for address in ${cc_list}; do
         CC_OPTS="${CC_OPTS} --cc ${address}"
     done