summaryrefslogtreecommitdiff
path: root/scripts/keygeneration/add_loem_keys.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/keygeneration/add_loem_keys.sh')
-rwxr-xr-xscripts/keygeneration/add_loem_keys.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/keygeneration/add_loem_keys.sh b/scripts/keygeneration/add_loem_keys.sh
index 1b50f47c..198baf0c 100755
--- a/scripts/keygeneration/add_loem_keys.sh
+++ b/scripts/keygeneration/add_loem_keys.sh
@@ -8,7 +8,7 @@
usage() {
cat <<EOF
-Usage: ${0##*/} <number of loem keys to add>
+Usage: ${PROG} <number of loem keys to add>
If the existing keyset is not set up for loem usage, it will be converted.
@@ -52,8 +52,7 @@ main() {
local num_keys highest_key k
if [[ ! -e ${VERSION_FILE} ]]; then
- echo "missing ${VERSION_FILE} in ${PWD}; please create one" >&2
- exit 1
+ die "missing ${VERSION_FILE} in ${PWD}; please create one"
fi
firmware_key_version=$(get_version "firmware_key_version")