Check password length

This commit is contained in:
Bob Mottram 2016-11-19 13:34:35 +00:00
parent 9e2f2a99e8
commit 4acc1d9612
1 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ export TEXTDOMAINDIR="/usr/share/locale"
MY_BACKUP_KEY_ID=
CURR_USERNAME=
CURR_APP=
CURR_PASSWORD=
CURR_PASSWORD=""
function get_backup_key_id {
MY_BACKUP_KEY_ID=$(gpg --list-keys "(backup key)" | \
@ -116,7 +116,7 @@ if [ ! $CURR_APP ]; then
exit 3
fi
if [ ! $CURR_PASSWORD ]; then
if [ {#CURR_PASSWORD} -eq 0 ]; then
# retrieve password
if [ ! -f ~/.passwords/$CURR_USER/$CURR_APP ]; then
echo ""