Skip to content

Commit 2802724

Browse files
author
AstrobioMike
committed
mod conda-setup.sh
1 parent 947acb4 commit 2802724

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

conda-setup.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ conda config --add channels au-eoed 2> /dev/null
2929
conda create -n gtotree biopython hmmer muscle trimal fasttree iqtree prodigal taxonkit gnu-parallel --yes
3030

3131
## activating environment
32-
source activate gtotree
32+
source activate gtotree 2> /dev/null || conda activate gtotree
3333

3434
## creating directory for conda-env-specific source files
3535
mkdir -p ${CONDA_PREFIX}/etc/conda/activate.d
@@ -62,7 +62,7 @@ echo 'export LC_ALL="en_US.UTF-8"' >> ${CONDA_PREFIX}/etc/conda/activate.d/env_v
6262
echo 'export LANG="en_US.UTF-8"' >> ${CONDA_PREFIX}/etc/conda/activate.d/env_vars.sh
6363

6464
# re-activating environment so variable and PATH changes take effect
65-
source activate gtotree
65+
source activate gtotree 2> /dev/null || conda activate gtotree
6666

6767
## removing citation notifications from `parallel` (i note on all places it is mentioned to please cite them and all tools in here)
6868
printf "will cite" | parallel --citation 2&> /dev/null

0 commit comments

Comments
 (0)