diff --git a/create-attributable-archive.sh b/create-attributable-archive.sh index 74de4e0..feefbb1 100755 --- a/create-attributable-archive.sh +++ b/create-attributable-archive.sh @@ -162,17 +162,21 @@ if [[ "$keystore_passphrase" != "$keystore_passphrase_check" ]]; then else echo -e "keystore passphrases... \e[1;32mOK!\e[0m" fi +printf "unsetting keystore passphrase checl" unset keystore_passphrase_check > /dev/null 2>&1 +checkcode $? printf "archivin keys..." -7z a "keystore/keystore_${unix_seconds}.7z" "private_*" "attribution_passphrase_${unix_seconds}.txt" -p"$keystore_passphrase" -mhe=on # > /dev/null 2>&1 +7z a "keystore/keystore_${unix_seconds}.7z" "private_*" "attribution_passphrase_${unix_seconds}.txt" -p"$keystore_passphrase" -mhe=on > /dev/null 2>&1 checkcode $? printf "testing key archive..." -7z t "keystore/keystore_${unix_seconds}.7z" -p"$keystore_passphrase" # > /dev/null 2>&1 +7z t "keystore/keystore_${unix_seconds}.7z" -p"$keystore_passphrase" > /dev/null 2>&1 checkcode $? +printf "unsetting keystore passphrase" unset keystore_passphrase > /dev/null 2>&1 +checkcode $? printf "resetting environment..." reset