Skip to content
Snippets Groups Projects
Commit 4acc1d96 authored by Bob Mottram's avatar Bob Mottram
Browse files

Check password length

parent 9e2f2a99
No related branches found
No related tags found
No related merge requests found
......@@ -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 ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment