File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
build/evergreen_config_lib Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,12 @@ functions:
23
23
set -o errexit
24
24
if [ -n "${github_pr_number}" -o "${is_patch}" = "true" ]; then
25
25
# This is a GitHub PR or patch build, probably branched from master
26
- echo $(python ./build/calc_release_version.py --next-minor) > VERSION_CURRENT
26
+ if command -v python3 2>/dev/null; then
27
+ # Prefer python3 if it is available
28
+ echo $(python3 ./build/calc_release_version.py --next-minor) > VERSION_CURRENT
29
+ else
30
+ echo $(python ./build/calc_release_version.py --next-minor) > VERSION_CURRENT
31
+ fi
27
32
VERSION=$VERSION_CURRENT-${version_id}
28
33
else
29
34
VERSION=latest
Original file line number Diff line number Diff line change 29
29
shell_mongoc (r'''
30
30
if [ -n "${github_pr_number}" -o "${is_patch}" = "true" ]; then
31
31
# This is a GitHub PR or patch build, probably branched from master
32
- echo $(python ./build/calc_release_version.py --next-minor) > VERSION_CURRENT
32
+ if command -v python3 2>/dev/null; then
33
+ # Prefer python3 if it is available
34
+ echo $(python3 ./build/calc_release_version.py --next-minor) > VERSION_CURRENT
35
+ else
36
+ echo $(python ./build/calc_release_version.py --next-minor) > VERSION_CURRENT
37
+ fi
33
38
VERSION=$VERSION_CURRENT-${version_id}
34
39
else
35
40
VERSION=latest
You can’t perform that action at this time.
0 commit comments