1
mirror of https://github.com/hashcat/hashcat synced 2025-01-25 05:17:27 +01:00

Merge pull request #1947 from philsmd/patch-2

add env variable IS_OPTIMIZED to test.sh
This commit is contained in:
Jens Steube 2019-03-08 16:10:54 +01:00 committed by GitHub
commit 86b773a04f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2542,6 +2542,7 @@ TYPE="null"
VECTOR="default"
HT=0
PACKAGE=0
OPTIMIZED=1
while getopts "V:t:m:a:b:hcpd:x:o:d:D:F:POI:s:" opt; do
@ -2668,6 +2669,7 @@ while getopts "V:t:m:a:b:hcpd:x:o:d:D:F:POI:s:" opt; do
"P")
OPTS="$(echo "${OPTS}" | sed 's/ -O$//' | sed 's/^-O //' | sed 's/ -O //')"
OPTIMIZED=0
;;
\?)
@ -2681,6 +2683,8 @@ while getopts "V:t:m:a:b:hcpd:x:o:d:D:F:POI:s:" opt; do
done
export IS_OPTIMIZED=${OPTIMIZED}
if [ "${TYPE}" == "null" ]; then
OPTS="${OPTS} -D 2"
TYPE="Gpu"