From 78d49dd1e287a535c475e9790a57348f51e850ef Mon Sep 17 00:00:00 2001 From: Kian-Tat Lim Date: Fri, 23 Apr 2021 09:54:32 -0700 Subject: [PATCH] Use group command instead of subshell. --- pipelines/lib/util.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pipelines/lib/util.groovy b/pipelines/lib/util.groovy index a2e5fe2f..81919ed5 100644 --- a/pipelines/lib/util.groovy +++ b/pipelines/lib/util.groovy @@ -363,13 +363,13 @@ def lsstswBuild( set +o xtrace cd lsstsw source bin/envconfig - ( + { conda activate ltd && conda install -y -c conda-forge ltd-conveyor - ) || ( + } || { conda create -y -n ltd -c conda-forge ltd-conveyor && conda activate ltd - ) + } set -o xtrace GIT_REF=${LSST_REFS// /-} ln -s ../../_doxygen/html/cpp-api build/pipelines_lsst_io/_build/html/cpp-api