From 3c77062890c8f621d7621715b560ac6ff38e501b Mon Sep 17 00:00:00 2001
From: crowetic <5431064+crowetic@users.noreply.github.com>
Date: Sat, 3 Jun 2023 13:21:41 -0700
Subject: [PATCH] Update auto-fix-qortal.sh

fixed logic
---
 auto-fix-qortal.sh | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/auto-fix-qortal.sh b/auto-fix-qortal.sh
index b8ec9c9..80c8214 100644
--- a/auto-fix-qortal.sh
+++ b/auto-fix-qortal.sh
@@ -35,14 +35,14 @@ TIMESTAMP=`date +%s`
         fi
     fi
 
-if $(uname -m | grep 'armv7l'); then
-  echo "${WHITE} 32bit ARM detected, using ARM 32bit compatible modified start script${NC}\n"
-  curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/start-modified-memory-args.sh
-  chmod +x start-modified-memory-args.sh
-  mv start-modified-memory-args.sh ~/qortal/start.sh
-else
-  echo "${WHITE} Machine is not ARM 32bit, continuing to check memory and assign correct start script...${NC}\n"
-fi
+  if [ "$(uname -m | grep 'armv7l')" != "" ]; then
+      echo "${WHITE} 32bit ARM detected, using ARM 32bit compatible modified start script${NC}\n"
+      curl -L -O https://raw.githubusercontent.com/crowetic/QORTector-scripts/main/start-modified-memory-args.sh
+      chmod +x start-modified-memory-args.sh
+      mv start-modified-memory-args.sh ~/qortal/start.sh
+  else
+      echo "${WHITE} Machine is not ARM 32bit, continuing to check memory and assign correct start script...${NC}\n"
+  fi
 
 
 totalm=$(free -m | awk '/^Mem:/{print $2}')