this is my life now. infinite frustration cast upon me by an evil curse \
This commit is contained in:
@@ -311,12 +311,16 @@ echo "input keystore passphrase (again):"
|
||||
read -r -s keystore_passphrase_check
|
||||
echo
|
||||
|
||||
if printf "%s" "$keystore_passphrase" | cracklib-check | grep -q 'OK'; then
|
||||
echo -e "keystore passphrase strength: \033[0;32mOK!\033[0m"
|
||||
else
|
||||
echo -e "\n\n\033[0;31mKeystore passphrase not strong enough! Exiting!\033[0m\n\n"
|
||||
exit 1
|
||||
fi
|
||||
printf "auditing keystore passphrase..."
|
||||
audit_passphrase "$keystore_passphrase" "$keystore_passphrase_check"
|
||||
checkcode $?
|
||||
|
||||
# if printf "%s" "$keystore_passphrase" | cracklib-check | grep -q 'OK'; then
|
||||
# echo -e "keystore passphrase strength: \033[0;32mOK!\033[0m"
|
||||
# else
|
||||
# echo -e "\n\n\033[0;31mKeystore passphrase not strong enough! Exiting!\033[0m\n\n"
|
||||
# exit 1
|
||||
# fi
|
||||
|
||||
if [[ "$keystore_passphrase" != "$keystore_passphrase_check" ]]; then
|
||||
echo -e "\n\n\033[0;31mKeystore passphrases do not match! Exiting!\033[0m\n\n"
|
||||
|
||||
Reference in New Issue
Block a user