1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-02-02 19:01:09 +00: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" VECTOR="default"
HT=0 HT=0
PACKAGE=0 PACKAGE=0
OPTIMIZED=1
while getopts "V:t:m:a:b:hcpd:x:o:d:D:F:POI:s:" opt; do 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") "P")
OPTS="$(echo "${OPTS}" | sed 's/ -O$//' | sed 's/^-O //' | sed 's/ -O //')" 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 done
export IS_OPTIMIZED=${OPTIMIZED}
if [ "${TYPE}" == "null" ]; then if [ "${TYPE}" == "null" ]; then
OPTS="${OPTS} -D 2" OPTS="${OPTS} -D 2"
TYPE="Gpu" TYPE="Gpu"