Skip to content

Commit

Permalink
64 and 32 bit os support
Browse files Browse the repository at this point in the history
  • Loading branch information
mjirik committed Apr 3, 2015
1 parent b2fc558 commit 579b846
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions ubuntu_installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,16 @@ apt-get install -y -qq $(grep -vE "^\s*#" requirements_apt.txt | tr "\n" " ")
if hash conda 2>/dec/null; then
echo "Conda is installed"
else
sudo -u $USER wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
sudo -u $USER bash Miniconda-latest-Linux-x86_64.sh -b
MACHINE_TYPE=`uname -m`
if [ ${MACHINE_TYPE} == 'x86_64' ]; then
# 64-bit stuff here
sudo -u $USER wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh
sudo -u $USER bash Miniconda-latest-Linux-x86_64.sh -b
else
# 32-bit stuff here
sudo -u $USER wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86.sh
sudo -u $USER bash Miniconda-latest-Linux-x86.sh -b
fi
sudo -u $USER export PATH=$HOMEDIR/miniconda/bin:$PATH
fi

Expand Down

0 comments on commit 579b846

Please sign in to comment.