Remove non-random elements from key

This commit is contained in:
Bob Mottram 2016-11-19 19:27:41 +00:00
parent c3630f4900
commit f9759acf6e
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ fi
get_backup_key_id
# Use the backups private key as a symmetric passphrase
MASTER_PASSWORD=$(gpg -q --armor --export-secret-key $MY_BACKUP_KEY_ID)
MASTER_PASSWORD=$(gpg -q --armor --export-secret-key $MY_BACKUP_KEY_ID | sed '/---/d' | sed '/Version/d' | sed '/^$/d')
if [ ! $CURR_USERNAME ]; then
echo $'No username given'