Skip to content

Commit

Permalink
BUG: 08-bashrc.conda.sh: make echo_conda_envs_paths() (lsce, wec<TAB>…
Browse files Browse the repository at this point in the history
…): error when CONDA_ENVS_PATH is unset
  • Loading branch information
Wes Turner authored and westurner committed Dec 17, 2018
1 parent a567956 commit d8953a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions etc/bash/08-bashrc.conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,11 @@ function echo_conda_envs_paths {
"${CONDA_ENVS__py36}"
"${CONDA_ENVS__py37}"
)
if [ "$(echo "${envs_paths[*]}" | sed 's/ //g')" == "" ]; then
echo ''>&2
echo 'Error: ${CONDA_ENVS_PATH} is not set'>&2
return 1
fi
printf '%s\n' "${envs_paths[@]}" \
| deduplicate_lines
}
Expand Down

0 comments on commit d8953a3

Please sign in to comment.