From 2639feebd5196f0b92ef7d8ad13a550aa6ba61a5 Mon Sep 17 00:00:00 2001 From: cgeek <cem.moreau@gmail.com> Date: Thu, 3 Dec 2015 19:20:28 +0100 Subject: [PATCH] Fix: differentiate x86 and x64 --- install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 0dbc20771..ba70e8cf2 100644 --- a/install.sh +++ b/install.sh @@ -93,7 +93,7 @@ install_ucoin_from_git() { local NVER="0.12.6"; local ARCH="86" local X64=`uname -r | grep "x86_64"` - if [ ! -z X64 ]; then + if [ ! -z "$X64" ]; then ARCH="64" fi local NODEJS_FILENAME=node-v${NVER}-linux-x${ARCH} @@ -126,7 +126,7 @@ install_ucoin_from_git() { install_ucoin_as_script() { local ARCH="32" local X64=`uname -r | grep "x86_64"` - if [ ! -z X64 ]; then + if [ ! -z "$X64" ]; then ARCH="64" fi local UCOIN_SOURCE_LOCAL -- GitLab