File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ if [[ -x "/remote/anaconda_token" ]]; then
3
3
. /remote/anaconda_token || true
4
4
fi
5
5
6
+ set -ex
7
+
6
8
# Defined a portable sed that should work on both mac and linux
7
9
if [ " $( uname) " == ' Darwin' ]; then
8
- portable_sed=' sed -E -i \ ' \' '
10
+ portable_sed=" sed -E -i '' "
9
11
else
10
12
portable_sed=' sed --regexp-extended -i'
11
13
fi
12
14
13
- set -ex
14
-
15
15
echo " Building cuda version $1 and pytorch version: $2 build_number: $3 "
16
16
desired_cuda=" $1 "
17
17
build_version=" $2 "
@@ -73,10 +73,10 @@ echo "Using conda-build folder $build_folder"
73
73
74
74
# Alter the meta.yaml to use passed in Github repo/branch
75
75
if [[ -n " $GITHUB_ORG " ]]; then
76
- portable_sed " s#git_url:.*#git_url: https://github.com/$GITHUB_ORG /pytorch#g" " $build_folder /meta.yaml"
76
+ " $ portable_sed" " s#git_url:.*#git_url: https://github.com/$GITHUB_ORG /pytorch#g" " $build_folder /meta.yaml"
77
77
fi
78
78
if [[ -n " $PYTORCH_BRANCH " ]]; then
79
- portable_sed " s#git_rev:.*#git_rev: $PYTORCH_BRANCH #g" " $build_folder /meta.yaml"
79
+ " $ portable_sed" " s#git_rev:.*#git_rev: $PYTORCH_BRANCH #g" " $build_folder /meta.yaml"
80
80
fi
81
81
82
82
# Loop through all Python versions to build a package for each
You can’t perform that action at this time.
0 commit comments