b7dbfb6f3e
6e48a1c: luks-edit: remove unnecessary 2>/dev/null 3f879a3: Avoid invalid message for clevis command e0e92f8: Fix typo in error messages 47b01ab: Improve boot performance by removing key check f5786d3: Notify error url on server connect fail f621575: luks: fix typo when adding a pending device 0589c14: luks: ignore empty & comment lines in crypttab 3bb852b: luks: define max entropy bits for pwmake Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
26 lines
490 B
Diff
26 lines
490 B
Diff
--- clevis-18.0010/src/clevis 2021-04-15 13:00:19.965065700 +0200
|
|
+++ clevis-18/src/clevis 2022-12-16 12:29:15.122501596 +0100
|
|
@@ -27,6 +27,8 @@
|
|
}
|
|
|
|
cmd=clevis
|
|
+input_commands="$cmd $@"
|
|
+
|
|
while [ $# -gt 0 ]; do
|
|
[[ "$1" =~ ^- ]] && break
|
|
cmd="$cmd-$1"
|
|
@@ -36,8 +38,11 @@
|
|
done
|
|
|
|
exec >&2
|
|
-echo
|
|
-echo "Command '$cmd' is invalid"
|
|
+if [ "$cmd" != "clevis" ];
|
|
+then
|
|
+ echo
|
|
+ echo "Command '$input_commands' is invalid"
|
|
+fi
|
|
echo
|
|
echo "Usage: clevis COMMAND [OPTIONS]"
|
|
echo
|