Backup key check

This commit is contained in:
Bob Mottram 2016-11-19 13:27:48 +00:00
parent b17813f7e5
commit 3b0ee1245b
1 changed files with 3 additions and 2 deletions

View File

@ -76,7 +76,7 @@ do
key="$1"
case $key in
--help)
-h|--help)
show_help
;;
-u|--user|--username)
@ -98,7 +98,8 @@ do
shift
done
MASTER_PASSWORD=$(gpg -q --armor --export-secret-key 'backup key')
get_backup_key_id
MASTER_PASSWORD=$(gpg -q --armor --export-secret-key $MY_BACKUP_KEY_ID)
if [ ! $CURR_USERNAME ]; then
echo $'No username given'