Commit efbe8add authored by nvmnghia's avatar nvmnghia

Update SetupLubuntu.sh

parent 65e1fdda
...@@ -70,7 +70,7 @@ if ! [ -x "$(command -v conda)" ]; then ...@@ -70,7 +70,7 @@ if ! [ -x "$(command -v conda)" ]; then
ANACONDA_LATEST=$(wget -r --spider -l 1 https://repo.anaconda.com/archive/ 2>&1 | grep Anaconda3 | grep -v ppc64le | grep -m 1 Linux) ANACONDA_LATEST=$(wget -r --spider -l 1 https://repo.anaconda.com/archive/ 2>&1 | grep Anaconda3 | grep -v ppc64le | grep -m 1 Linux)
ANACONDA_LATEST=${ANACONDA_LATEST##*-- } # Keep the https part, which is right after '-- ' ^ -m 1 to grep the first match ANACONDA_LATEST=${ANACONDA_LATEST##*-- } # Keep the https part, which is right after '-- ' ^ -m 1 to grep the first match
wget -O anaconda.sh $ANACONDA_LATEST wget -O anaconda.sh $ANACONDA_LATEST
sudo -u $usr bash ./anaconda.sh -f -p $HOME/anaconda sudo -u $usr bash ./anaconda.sh -bf -p $HOME/anaconda
rm -rf anaconda.sh repo.anaconda.com rm -rf anaconda.sh repo.anaconda.com
fi fi
conda upgrade --all conda upgrade --all
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment