From f0e77e8addcb8495a955de6fb13fce0d2c81d953 Mon Sep 17 00:00:00 2001 From: Martin Tzvetanov Grigorov Date: Thu, 20 Oct 2022 16:13:30 +0300 Subject: [PATCH] Download Miniconda for the current CPU architecture It will still fail for architectures not supported by Miniconda. Signed-off-by: Martin Tzvetanov Grigorov --- neurolabi/shell/setup_neutu.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/neurolabi/shell/setup_neutu.sh b/neurolabi/shell/setup_neutu.sh index 838f448f2..f747842a7 100755 --- a/neurolabi/shell/setup_neutu.sh +++ b/neurolabi/shell/setup_neutu.sh @@ -62,15 +62,16 @@ fi #echo $PATH #which md5 #exit +ARCH=`uname -m` cd $downloadDir if [ ! -d $condaDir ] then if [ `uname` = 'Darwin' ]; then - curl -X GET https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh > Miniconda-latest-x86_64.sh + curl -X GET https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-${ARCH}.sh > Miniconda-latest-${ARCH}.sh else - curl -X GET https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh > Miniconda-latest-x86_64.sh + curl -X GET https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-${ARCH}.sh > Miniconda-latest-${ARCH}.sh fi - bash Miniconda-latest-x86_64.sh -b -p $condaDir + bash Miniconda-latest-${ARCH}.sh -b -p $condaDir fi cd $scriptDir