From d9f866fc3a7601fb8bffc32881875ffdc1192827 Mon Sep 17 00:00:00 2001 From: Jeremy Lecour Date: Tue, 5 May 2020 15:06:15 +0200 Subject: [PATCH] typo --- shellpki | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shellpki b/shellpki index 13027e7..3115ad0 100755 --- a/shellpki +++ b/shellpki @@ -212,7 +212,7 @@ verify_ca_password() { ask_ca_password() { attempt=${1:-0} - max_attempt=3 + max_attempts=3 trap 'unset CA_PASSWORD' 0 @@ -222,8 +222,8 @@ ask_ca_password() { if [ "${attempt}" -gt 0 ]; then warning "Invalid password, retry." fi - if [ "${attempt}" -ge "${max_attempt}" ]; then - error "Maximum number of attempts reached (${max_attempt})." + if [ "${attempt}" -ge "${max_attempts}" ]; then + error "Maximum number of attempts reached (${max_attempts})." fi if [ -z "${CA_PASSWORD}" ]; then stty -echo