Skip to content

Commit d69121b

Browse files
committed
shell syntax
1 parent ebb6c93 commit d69121b

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

.ci/azure/setup_env.sh

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,12 @@ then
2020
cp .ci/environment_test_bare.yml environment_test_with_pyversion.yml
2121
echo " - python-freethreading="$PYTHON_VERSION >> environment_test_with_pyversion.yml
2222
else
23-
if ${is_rc}
24-
then
25-
cp .ci/environment_test_bare.yml environment_test_with_pyversion.yml
26-
else
27-
cp .ci/environment_test.yml environment_test_with_pyversion.yml
28-
fi
23+
cp .ci/environment_test.yml environment_test_with_pyversion.yml
2924
echo " - python="$PYTHON_VERSION >> environment_test_with_pyversion.yml
3025
fi
3126

3227
if ${is_rc}
28+
then
3329
sed -i '/^channels:/,/^dependencies:/ { /^ - /h; }; ${x;s/.*/ - conda-forge/label/python_rc/;p}' environment_test_with_pyversion.yml
3430
fi
3531
conda env create --file environment_test_with_pyversion.yml

0 commit comments

Comments
 (0)