From ef67fc87b16aff1bd9c9646d2324c03fb4cbfa15 Mon Sep 17 00:00:00 2001 From: Thorsten Spille Date: Sat, 4 Mar 2023 20:39:59 +0100 Subject: [PATCH] Rework aes detection --- bashclub-zsync/usr/bin/bashclub-zsync | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bashclub-zsync/usr/bin/bashclub-zsync b/bashclub-zsync/usr/bin/bashclub-zsync index 0cce216..bd1b6ba 100644 --- a/bashclub-zsync/usr/bin/bashclub-zsync +++ b/bashclub-zsync/usr/bin/bashclub-zsync @@ -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