Check password length
This commit is contained in:
parent
9e2f2a99e8
commit
4acc1d9612
|
@ -37,7 +37,7 @@ export TEXTDOMAINDIR="/usr/share/locale"
|
||||||
MY_BACKUP_KEY_ID=
|
MY_BACKUP_KEY_ID=
|
||||||
CURR_USERNAME=
|
CURR_USERNAME=
|
||||||
CURR_APP=
|
CURR_APP=
|
||||||
CURR_PASSWORD=
|
CURR_PASSWORD=""
|
||||||
|
|
||||||
function get_backup_key_id {
|
function get_backup_key_id {
|
||||||
MY_BACKUP_KEY_ID=$(gpg --list-keys "(backup key)" | \
|
MY_BACKUP_KEY_ID=$(gpg --list-keys "(backup key)" | \
|
||||||
|
@ -116,7 +116,7 @@ if [ ! $CURR_APP ]; then
|
||||||
exit 3
|
exit 3
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! $CURR_PASSWORD ]; then
|
if [ {#CURR_PASSWORD} -eq 0 ]; then
|
||||||
# retrieve password
|
# retrieve password
|
||||||
if [ ! -f ~/.passwords/$CURR_USER/$CURR_APP ]; then
|
if [ ! -f ~/.passwords/$CURR_USER/$CURR_APP ]; then
|
||||||
echo ""
|
echo ""
|
||||||
|
|
Loading…
Reference in New Issue