diff --git a/create-attributable-archive.sh b/create-attributable-archive.sh index 410887c..297c78e 100755 --- a/create-attributable-archive.sh +++ b/create-attributable-archive.sh @@ -248,8 +248,8 @@ read -r -s attribution_passphrase_check echo printf "auditing attribution passphrase" -ret=$(audit_passphrase "$attribution_passphrase" "$attribution_passphrase_check") -checkcode $ret +audit_passphrase "$attribution_passphrase" "$attribution_passphrase_check" +checkcode $? if [[ "$attribution_passphrase" != "$attribution_passphrase_check" ]]; then echo -e "\n\n\033[0;31mAttribution passphrases do not match! Exiting!\033[0m\n\n" @@ -307,8 +307,8 @@ read -r -s keystore_passphrase_check echo printf "auditing keystore passphrase..." -ret=$(audit_passphrase "$keystore_passphrase" "$keystore_passphrase_check") -checkcode $ret +audit_passphrase "$keystore_passphrase" "$keystore_passphrase_check" +checkcode $? if [[ "$keystore_passphrase" != "$keystore_passphrase_check" ]]; then echo -e "\n\n\033[0;31mKeystore passphrases do not match! Exiting!\033[0m\n\n"