X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=enc.sh;h=c399a7e9edeb635470e35b9e07eef22b9227b5f7;hb=c1316a732ba6d2dea7c73c7c603be523eb6946da;hp=de4c2a86d440fa3cb8957df583732fd850ace3ec;hpb=954fc12886a308332809cef0a5cd162de66fc178;p=cmccabe-bin 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."