Selaa lähdekoodia

Backup key check

Bob Mottram 8 vuotta sitten
vanhempi
commit
3b0ee1245b
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3
    2
      src/freedombone-pass

+ 3
- 2
src/freedombone-pass Näytä tiedosto

@@ -76,7 +76,7 @@ do
76 76
     key="$1"
77 77
 
78 78
     case $key in
79
-        --help)
79
+        -h|--help)
80 80
             show_help
81 81
             ;;
82 82
         -u|--user|--username)
@@ -98,7 +98,8 @@ do
98 98
     shift
99 99
 done
100 100
 
101
-MASTER_PASSWORD=$(gpg -q --armor --export-secret-key 'backup key')
101
+get_backup_key_id
102
+MASTER_PASSWORD=$(gpg -q --armor --export-secret-key $MY_BACKUP_KEY_ID)
102 103
 
103 104
 if [ ! $CURR_USERNAME ]; then
104 105
     echo $'No username given'