Command 'help': For unknown command, exit with error.

Added ChangeLog notice.

Squashed commit of the following:

commit de8f9e689e6409b606f112067754c28e3eef1d1d
Merge: ab7c480 0753241
Author: Richard T Bonhomme <tincantech@protonmail.com>
Date:   Wed Oct 26 21:45:29 2022 +0100

    Merge branch 'help-err-exit' of ssh://github.com/TinCanTech/easy-rsa into TinCanTech-help-err-exit

    Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>

commit 0753241b0c45311475822d05ce492ef925423dad
Author: Richard T Bonhomme <tincantech@protonmail.com>
Date:   Tue Oct 25 21:52:49 2022 +0100

    Command 'help': For unknown command, exit with error.

    Closes: #736

    Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-10-26 21:48:45 +01:00
parent ab7c4804fb
commit db33add56a
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246
2 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
Easy-RSA 3 ChangeLog
3.1.2 (TBD)
* Command 'help': For unknown command, exit with error (#737)
* Find data-files in the correct order (#727 - Reported #725)
3.1.1 (2022-10-13)

View File

@ -417,6 +417,7 @@ cmd_help() {
*)
err_text="
Unknown command: '$1' (try without commands for a list of commands)"
easyrsa_error_exit=1
esac
if [ "$err_text" ]; then