Skip to content

Commit b72ec7c

Browse files
ezyangpruthvistony
authored andcommitted
Fix conda install on distributions with strict POSIX sh (pytorch#91371)
See also conda/conda#10431 Signed-off-by: Edward Z. Yang <[email protected]> Pull Request resolved: pytorch#91371 Approved by: https://github.com/albanD
1 parent cc4e8b5 commit b72ec7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/docker/common/install_conda.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ if [ -n "$ANACONDA_PYTHON_VERSION" ]; then
4242

4343
pushd /tmp
4444
wget -q "${BASE_URL}/${CONDA_FILE}"
45-
chmod +x "${CONDA_FILE}"
46-
as_jenkins ./"${CONDA_FILE}" -b -f -p "/opt/conda"
45+
# NB: Manually invoke bash per https://github.com/conda/conda/issues/10431
46+
as_jenkins bash "${CONDA_FILE}" -b -f -p "/opt/conda"
4747
popd
4848

4949
# NB: Don't do this, rely on the rpath to get it right

0 commit comments

Comments
 (0)