From 9bb09c15d24b1cd027e2c5c2fd90e4163ef5374c Mon Sep 17 00:00:00 2001 From: Mafoo Date: Fri, 5 Aug 2016 15:10:39 +0100 Subject: [PATCH] BugFix-Arm compatibility (#31) fix an issue reported in IRC with cubox-i4 not detecting the cpu correctly --- debian/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/install.sh b/debian/install.sh index 53f3130..0b612f0 100755 --- a/debian/install.sh +++ b/debian/install.sh @@ -48,13 +48,13 @@ if [ $CPU_CHECK = true ]; then OS_bits=$(uname -m) OS_arch=$(uname -m) CPU_bits='i686' - if [ $(grep -o -w 'lm' /proc/cpuinfo) = 'lm' ]; then + if [ "$(grep -o -w 'lm' /proc/cpuinfo)" = 'lm' ]; then CPU_bits='x86_64' fi if [ $USE_SWITCH_SOURCE = false ]; then if [ $OS_arch = 'armv7l' ]; then - if [ $USE_SWITCH_PACKAGE_UNOFFICIAL_ARM = false && OS_bits = 'i686' ]; then + if [ $USE_SWITCH_PACKAGE_UNOFFICIAL_ARM = false ] && [ OS_bits = 'i686' ]; then error "You are using a 32bit arm OS this is unsupported" warning " please rerun with either --use-switch-package-unofficial-arm or --use-switch-source" exit 3