From c1316a732ba6d2dea7c73c7c603be523eb6946da Mon Sep 17 00:00:00 2001 From: Colin P. Mccabe Date: Mon, 23 Sep 2019 10:53:58 -0700 Subject: [PATCH] enc.sh: add password confirmation --- enc.sh | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/enc.sh b/enc.sh index de4c2a8..c399a7e 100755 --- a/enc.sh +++ b/enc.sh @@ -7,6 +7,9 @@ die() { if [[ "x${PASS}" = "x" ]]; then read -s -p "enter password: " PASS + echo + read -s -p "re-enter password: " PASS2 + [[ ${PASS} == ${PASS2} ]] || die "The passwords did not match." fi #[ "x${SALT}" = "x" ] && die "you must set SALT to the salt." -- 1.6.6.rc1.39.g9a42