-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
Use bash instead of sh in evergreen scripts. There are still a few places where "sh" is used:
$ git grep ' sh ' .evergreen/perf.yml:108: MONGODB_VERSION=${VERSION} TOPOLOGY=${TOPOLOGY} AUTH=${AUTH} SSL=${SSL} STORAGE_ENGINE=${STORAGE_ENGINE} sh ${DRIVERS_TOOLS}/.evergreen/run-orchestration.sh .evergreen/perf.yml:119: sh ${DRIVERS_TOOLS}/.evergreen/stop-orchestration.sh .evergreen/perf.yml:128: PROJECT_DIRECTORY=${PROJECT_DIRECTORY} sh ${PROJECT_DIRECTORY}/.evergreen/run-perf-tests.sh .evergreen/perf.yml:185: [ -f "$file" ] && sh $file || echo "$file not available, skipping"
We should also consider adding "shell: bash" to all the
shell.exec commands.
This is motivated by https://github.com/mongodb-labs/drivers-evergreen-tools/pull/257 and other recent changed which are standardizing (and now requiring) on bash rather than bourne shell for drivers-evergreen-tools