From dcd134953586fbcbe9924131e07fe443088da0a5 Mon Sep 17 00:00:00 2001 From: AJ Schmidt Date: Mon, 17 Jun 2024 16:14:06 -0400 Subject: [PATCH] Make `rapids-print-env` compatible with non-`conda` images (#109) --- tools/rapids-print-env | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/rapids-print-env b/tools/rapids-print-env index fe8e308..1991f9c 100755 --- a/tools/rapids-print-env +++ b/tools/rapids-print-env @@ -13,7 +13,9 @@ arch rapids-logger "Check python version" python --version -rapids-logger "Check conda environment" -conda info -conda config --show-sources -conda list --show-channel-urls +if command -v conda > /dev/null; then + rapids-logger "Check conda environment" + conda info + conda config --show-sources + conda list --show-channel-urls +fi