From 5edc37d68bbb771a39fd9edbf920f35b98d95f67 Mon Sep 17 00:00:00 2001 From: Kentaro Wada Date: Sat, 15 Dec 2018 17:08:14 +0000 Subject: [PATCH] Create TMPDIR and remove it in install_anaconda3.sh --- local/bin/install_anaconda3.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/local/bin/install_anaconda3.sh b/local/bin/install_anaconda3.sh index 85f8b94a..f7f6e889 100755 --- a/local/bin/install_anaconda3.sh +++ b/local/bin/install_anaconda3.sh @@ -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 @@ -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