diff --git a/create-attributable-archive.sh b/create-attributable-archive.sh index ecec01a..39a9b6d 100755 --- a/create-attributable-archive.sh +++ b/create-attributable-archive.sh @@ -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"