Rework aes detection

This commit is contained in:
Thorsten Spille 2023-03-04 20:39:59 +01:00
parent b645d1f106
commit ef67fc87b1

View File

@ -89,8 +89,8 @@ else
fi
local_aes=$(/usr/bin/grep -m1 -o aes /proc/cpuinfo)
remote_aes=$($ssh $source $sshport "/usr/bin/grep -m1 -o aes /proc/cpuinfo")
local_aes=$(/usr/bin/grep -m1 -o aes /proc/cpuinfo | uniq)
remote_aes=$($ssh $source $sshport "/usr/bin/grep -m1 -o aes /proc/cpuinfo | uniq")
if [[ $local_aes == "aes" ]] && [[ $remote_aes == "aes" ]]; then