Blame SOURCES/0010-avoid-clevis-invalid-msg.patch

c2f460
--- clevis-15.ori/src/clevis	2020-10-28 19:55:47.663228800 +0100
c2f460
+++ clevis-15/src/clevis	2022-06-22 11:06:27.061230653 +0200
c2f460
@@ -27,6 +27,7 @@
c2f460
 }
c2f460
 
c2f460
 cmd=clevis
c2f460
+input_commands="$cmd $@"
c2f460
 while [ $# -gt 0 ]; do
c2f460
     [[ "$1" =~ ^- ]] && break
c2f460
     cmd="$cmd-$1"
c2f460
@@ -36,8 +37,11 @@
c2f460
 done
c2f460
 
c2f460
 exec >&2
c2f460
-echo
c2f460
-echo "Command '$cmd' is invalid"
c2f460
+if [ "$cmd" != "clevis" ];
c2f460
+then
c2f460
+    echo
c2f460
+    echo "Command '$input_commands' is invalid"
c2f460
+fi
c2f460
 echo
c2f460
 echo "Usage: clevis COMMAND [OPTIONS]"
c2f460
 echo