Skip to content
This repository has been archived by the owner on Feb 15, 2023. It is now read-only.

Commit

Permalink
Update setup_mac.sh
Browse files Browse the repository at this point in the history
add a condition to check if conda is already installed and skip the install.
  • Loading branch information
ericmgoeken authored Sep 26, 2022
1 parent c0222b1 commit f78c018
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions setup_mac.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
#!/usr/bin/env bash -l

# Install conda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh

# Install conda
bash Miniconda3-latest-MacOSX-arm64.sh -b -p $HOME/miniconda

# Add conda to path
export PATH="$HOME/miniconda/bin:$PATH"
if ! command -v conda &> /dev/null
then
echo "conda is not installed. Installing miniconda"

# Install conda
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-arm64.sh

# Install conda
bash Miniconda3-latest-MacOSX-arm64.sh -b -p $HOME/miniconda

# Add conda to path
export PATH="$HOME/miniconda/bin:$PATH"

else
echo "conda is installed."

fi




# Initialize conda
conda init
Expand Down

0 comments on commit f78c018

Please sign in to comment.