Skip to content

Commit

Permalink
check for miniconda path
Browse files Browse the repository at this point in the history
  • Loading branch information
majetideepak committed Mar 8, 2024
1 parent 8820282 commit 1a52873
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions scripts/setup-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,19 @@ function install_fbthrift {
}

function install_conda {
mkdir -p conda && cd conda
MINICONDA_PATH=/opt/miniconda-for-velox
if [ -e ${MINICONDA_PATH}i ]; then
echo "File or directory already exists: ${MINICONDA_PATH}"
return
fi
ARCH=$(uname -m)

if [ "$ARCH" != "x86_64" ] && [ "$ARCH" != "aarch64" ]; then
echo "Unsupported architecture: $ARCH"
exit 1
fi

mkdir -p conda && cd conda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-$ARCH.sh

MINICONDA_PATH=/opt/miniconda-for-velox
bash Miniconda3-latest-Linux-$ARCH.sh -b -p $MINICONDA_PATH
}

Expand Down

0 comments on commit 1a52873

Please sign in to comment.