Skip to content

Commit

Permalink
update install.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Merritt-Brian committed Apr 23, 2024
1 parent e23f7d2 commit 2d4737a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,15 @@ case "${unameOut}" in
*) machine=""; OS="Linux";;
esac

if [[ $ARCH == "aarch64" ]]; then
if [[ $ARCH == "aarch64" ]] && [[ $OS == "Linux" ]]; then
machine="CONDA_SUBDIR=linux-64"
CONDA_SUBDIR=linux-64
fi
if [[ $ARCH != "arm64" ]] && [[ $OS == "Darwin" ]]; then
machine=""
ARCH="amd64"
CONDA_SUBDIR=osx-64
fi


echo Your Machine:${machine}, OS:${OS}
Expand All @@ -65,7 +70,7 @@ if ! command -v conda; then
elif [[ "$OS" == "Linux" && "$ARCH" == "aarch64" ]]; then
echo "Downloading Miniconda for Linux aarch64..."
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-aarch64.sh -O ~/miniconda.sh
elif [[ "$OS" == "Darwin" && "$ARCH" == "x86_64" ]]; then
elif [[ "$OS" == "Darwin" && "$ARCH" == "x86_64" ]] || [[ "$OS" == "Darwin" && "$ARCH" == "amd64" ]]; then
echo "Downloading Miniconda for macOS x86_64..."
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O ~/miniconda.sh
elif [[ "$OS" == "Darwin" && "$ARCH" == "arm64" ]]; then
Expand Down

0 comments on commit 2d4737a

Please sign in to comment.