From 0e9fdfde7b106c34661776b85dca574c32086c4e Mon Sep 17 00:00:00 2001 From: Ivan Ogasawara Date: Thu, 20 Jun 2024 10:07:15 -0400 Subject: [PATCH] fix bash if condition --- tests/smoke/base.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/smoke/base.sh b/tests/smoke/base.sh index 429e6531..e0eaead7 100755 --- a/tests/smoke/base.sh +++ b/tests/smoke/base.sh @@ -8,7 +8,7 @@ PROJECT_PATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && cd ../ CONDA_PATH=$(ensureconda --conda-exe --no-install) -if test -f "$CONDA_PATH"; then +if [[ ! -f "$CONDA_PATH" ]]; then echo "[EE] 'conda' not found." exit 1 fi