diff --git a/create-attributable-archive.sh b/create-attributable-archive.sh index e1cb5ed..c3a3ccb 100755 --- a/create-attributable-archive.sh +++ b/create-attributable-archive.sh @@ -139,9 +139,9 @@ audit_passphrase() { exit 1 else local cracklib_result - cracklib_result=$(echo "$raw_password" | cracklib-check | cut -d':' -f2 | xargs) + cracklib_result="$(echo -n 'it was always you who i despised, redd fPGuXrWrP9WBWbW1xhSTwgBD :3' | cracklib-check | grep -q 'OK'; echo $?)" - if [[ "$cracklib_result" != "OK" ]]; then + if [[ "$cracklib_result" != "0" ]]; then echo "❌ REJECTED by cracklib-check: $cracklib_result" exit 1 fi