From c3c4178791d9be9c4e3f38aa6e6eb287a4676905 Mon Sep 17 00:00:00 2001 From: philsmd <921533+philsmd@users.noreply.github.com> Date: Thu, 16 Jan 2020 12:22:30 +0100 Subject: [PATCH] tests: fix return code check in attack_0 () function --- tools/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/test.sh b/tools/test.sh index fe593cb30..e64e6685c 100755 --- a/tools/test.sh +++ b/tools/test.sh @@ -500,10 +500,10 @@ function attack_0() output=$(echo "${pass}" | ./${BIN} ${OPTS} -a 0 -m ${hash_type} "${hash}" 2>&1) - pass=${pass_old} - ret=${?} + pass=${pass_old} + echo "${output}" >> "${OUTD}/logfull.txt" if [ "${ret}" -eq 0 ]; then