Navigation Menu

Skip to content

Commit

Permalink
Create TMPDIR and remove it in install_anaconda3.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Dec 15, 2018
1 parent dbc6877 commit 5edc37d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion local/bin/install_anaconda3.sh
Expand Up @@ -13,7 +13,8 @@ if [ -e $INSTALL_DIR/.anaconda3 ]; then
exit 0
fi

cd $(mktemp -d)
TMPDIR=$(mktemp -d)
cd $TMPDIR

if [ "$(uname)" = "Linux" ]; then
wget -q 'https://repo.continuum.io/miniconda/Miniconda3-4.5.4-Linux-x86_64.sh' -O miniconda3.sh
Expand All @@ -25,6 +26,7 @@ else
fi

bash ./miniconda3.sh -p $INSTALL_DIR/.anaconda3 -b
rm -rf $TMPDIR

source $INSTALL_DIR/.anaconda3/bin/activate
conda update -n base -y conda
Expand Down

0 comments on commit 5edc37d

Please sign in to comment.