From a80c7724a6097a25981a39cf37a66bfaa7371f44 Mon Sep 17 00:00:00 2001 From: Aleksandr Oleinikov <10602045+tannisroot@users.noreply.github.com> Date: Wed, 26 Jun 2024 21:42:33 +0300 Subject: [PATCH] suggestions by Mike Co-authored-by: Michael Hansen --- etc/install-respeaker-drivers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/install-respeaker-drivers.sh b/etc/install-respeaker-drivers.sh index 8a0169f..4e7ff22 100755 --- a/etc/install-respeaker-drivers.sh +++ b/etc/install-respeaker-drivers.sh @@ -46,7 +46,7 @@ marker='0.0.0' threads="$(getconf _NPROCESSORS_ONLN)" memory="$(LANG=C free -m|awk '/^Mem:/{print $2}')" -if [ "$memory" -le 512 ] && [ "$threads" -gt 2 ]; then +if [ "${memory}" -le 512 ] && [ "${threads}" -gt 2 ]; then threads=2 fi