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:
parent
47cad04a32
commit
625ce2bb7c
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user