From 918002008455cea64effc28545eec74e54ad0ddd Mon Sep 17 00:00:00 2001 From: Daniel Guger Date: Mon, 15 Apr 2024 15:15:26 +0200 Subject: [PATCH] Apply suggestions from review Use inherent style in if statements and add comments. Co-authored-by: Emergency Self-Construct --- _conda | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_conda b/_conda index 2f2a056..443f435 100644 --- a/_conda +++ b/_conda @@ -185,7 +185,8 @@ __conda_envs(){ conda_exec=$(which conda) - if test ${${conda_exec}#*"homebrew"} != ${conda_exec}; then +# Detect homebrew installations and set path accordingly. + if [[ ${${conda_exec}#*"homebrew"} != ${conda_exec} ]]; then conda_path="/opt/homebrew/Caskroom/miniconda/base/envs" else conda_path="${${CONDA_EXE}%bin/conda}/envs"