1
0
mirror of https://github.com/hashcat/hashcat.git synced 2025-01-09 07:11:03 +00:00

Fix test.sh fix for M1

This commit is contained in:
Jens Steube 2021-12-27 15:03:33 +01:00
parent 47cad04a32
commit 625ce2bb7c

View File

@ -3168,7 +3168,8 @@ IS_APPLE_SILICON=0
# handle Apple M1 bugs with optimized kernels
if [ ${OPTIMIZED} -eq 1 ]; then
if [ $(uname) == "Darwin" ]; then
if [ ${OPTIMIZED} -eq 1 ]; then
BIN_sysctl=$(which sysctl)
if [ $? -eq 0 ]; then
CPU_TYPE=$(sysctl hw.cputype | awk '{print $2}')
@ -3180,6 +3181,7 @@ if [ ${OPTIMIZED} -eq 1 ]; then
IS_APPLE_SILICON=1
fi
fi
fi
fi
export IS_OPTIMIZED=${OPTIMIZED}