Merge branch 'TinCanTech-show-cmds-guard-input'

Signed-off-by: Richard T Bonhomme <tincantech@protonmail.com>
This commit is contained in:
Richard T Bonhomme 2022-08-16 22:55:55 +01:00
commit d6aaf5bc4c
No known key found for this signature in database
GPG Key ID: 2D767DB92FB6C246

View File

@ -3000,13 +3000,12 @@ verify_file() {
show() {
type="$1"
name="$2"
shift 2
in_file=""
format=""
[ "$name" ] || die "\
Missing expected <file_name_base> argument.
Run easyrsa without commands for usage help."
shift 2
# opts support
type_opts="-${type}opt"
@ -3043,7 +3042,7 @@ Run easyrsa without commands for usage help."
# Verify file exists and is of the correct type
[ -e "$in_file" ] || die "\
No such $type file with a basename of '$name' is present.
No such '$type' type file with a <file_name_base> of '$name' is present.
Expected to find this file at:
$in_file"