Skip to content

Commit

Permalink
allow wget=curl for those pesky mac users
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Dec 7, 2023
1 parent 72578d2 commit cc864ec
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/scripts/install_anaconda3
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ version=2023.09-0 # 3.11.5


dir=$(pwd)/anaconda3 # where anaconda will be located
wget=wgetc # use wgetc is you have my cashing version
wget=wgetc # use wgetc is you have my cashing version (wget=curl is also allowed,
os=$(uname -s) # Handles Linux or Darwin, sorry no Windows
cpu=$(uname -m) # Handles Linux or Darwin, sorry no Windows

Expand All @@ -47,17 +47,19 @@ if [ "$os" = "Darwin" ]; then
fi

mc3=$(printf $url $version $os $cpu)
$wget $mc3

msh=$(basename $mc3)

if [ $wget = "curl" ]; then
curl $mc3 -o $msh
else
$wget $mc3
fi

if [ ! -e $msh ]; then
echo "File $msh not found. Wrong version=$version ?"
exit 0
fi


bash $msh -b -p $dir

export PATH="$dir/bin:$PATH"
Expand Down

0 comments on commit cc864ec

Please sign in to comment.