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

e40c2b
--- clevis-18.ori/src/clevis	2021-04-15 13:00:19.965065700 +0200
e40c2b
+++ clevis-18/src/clevis	2022-06-20 14:29:50.148261656 +0200
e40c2b
@@ -27,6 +27,8 @@
e40c2b
 }
e40c2b
 
e40c2b
 cmd=clevis
e40c2b
+input_commands="$cmd $@"
e40c2b
+
e40c2b
 while [ $# -gt 0 ]; do
e40c2b
     [[ "$1" =~ ^- ]] && break
e40c2b
     cmd="$cmd-$1"
e40c2b
@@ -36,8 +38,11 @@
e40c2b
 done
e40c2b
 
e40c2b
 exec >&2
e40c2b
-echo
e40c2b
-echo "Command '$cmd' is invalid"
e40c2b
+if [ "$cmd" != "clevis" ];
e40c2b
+then
e40c2b
+    echo
e40c2b
+    echo "Command '$input_commands' is invalid"
e40c2b
+fi
e40c2b
 echo
e40c2b
 echo "Usage: clevis COMMAND [OPTIONS]"
e40c2b
 echo